Skip to content

Commit

Permalink
Merge pull request #6 from GrantBirki/dependency-updates
Browse files Browse the repository at this point in the history
Dependency Updates
  • Loading branch information
GrantBirki authored Aug 2, 2023
2 parents 383e1a8 + cc61968 commit a072f3f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ These are the inputs that the Action accepts in its workflow file:
| Name | Required? | Default | Description |
| --- | --- | --- | --- |
| `config` | yes | `auditor.yml` | The path to the [`auditor.yml`](#configuration-) configuration file |
| `json_diff_path` | yes | `git-diff-action-output.json` | The path to the JSON diff file to load (provided for you) |
| `json_diff_path` | yes | `git-diff-action-output.json` | The path to the JSON diff file to load (provided for you out of the box) |

> Please note that most of the configuration for this action takes place in the `auditor.yml` file which is described below

Expand Down
10 changes: 7 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,22 @@ runs:
using: "composite"
steps:
- name: checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # [email protected].2
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # [email protected].3
with:
fetch-depth: 0 # needed to checkout all branches

- name: git-diff-action
uses: GrantBirki/git-diff-action@b27852c0d000070b2238db042ecd6fa1fa49e08f # pin@v2.0.1
uses: GrantBirki/git-diff-action@0efdc4f3f6e42d753b485b79e9a4d06a917f256f # pin@v2.1.0
id: git-diff-action
with:
json_diff_file_output: ${{ inputs.json_diff_path }}
base_branch: HEAD^1 # compare the PR merge commit against its first parent
file_output_only: "true" # do not print any diff output to the console (safety first)
search_path: '.' # look in the entire repo for changes
max_buffer_size: "1000000" # the default git diff buffer size, increase if you have issues

- name: auditor-action
uses: GrantBirki/auditor-action-core@da9a47f6f87ec1369af15b72fe8bda69c9cb979b # [email protected].4
uses: GrantBirki/auditor-action-core@4eff4a076189632d59b83141f655791255b1d6be # [email protected].5
env:
CONFIG_PATH: ${{ inputs.config }}
JSON_DIFF_PATH: ${{ inputs.json_diff_path }}
Expand Down

0 comments on commit a072f3f

Please sign in to comment.