Skip to content

Commit 48caa85

Browse files
authored
Fix path to diff-check in action.yml (#5)
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.
1 parent 5827fdd commit 48caa85

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

action.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ runs:
1414
- run: ${{ inputs.command }}
1515
shell: bash
1616

17-
- name: Add Action to $GITHUB_PATH
18-
run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
17+
- run: $GITHUB_ACTION_PATH/bin/diff-check >> $GITHUB_STEP_SUMMARY
1918
shell: bash
2019
env:
2120
GITHUB_ACTION_PATH: ${{ github.action_path }}
22-
23-
- run: bin/diff-check >> $GITHUB_STEP_SUMMARY
24-
shell: bash

0 commit comments

Comments
 (0)