Skip to content

Commit

Permalink
Fix path to diff-check in action.yml (#5)
Browse files Browse the repository at this point in the history
It was previously assumed that `$GITHUB_PATH` affected the `$PATH`
lookup but this wasn't actually the case and so the command could never
be run.

Instead, this uses `$GITHUB_ACTION_PATH` (which is the path to the
action cached on the runner) to built out a full path for `diff-check`
instead, which is also simpler.

Fixes #4.
  • Loading branch information
nickcharlton authored Jun 14, 2024
1 parent 5827fdd commit 48caa85
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ runs:
- run: ${{ inputs.command }}
shell: bash

- name: Add Action to $GITHUB_PATH
run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
- run: $GITHUB_ACTION_PATH/bin/diff-check >> $GITHUB_STEP_SUMMARY
shell: bash
env:
GITHUB_ACTION_PATH: ${{ github.action_path }}

- run: bin/diff-check >> $GITHUB_STEP_SUMMARY
shell: bash

0 comments on commit 48caa85

Please sign in to comment.