Skip to content

Commit

Permalink
ci: use commit sha instead of HEAD to check changes on push (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanls authored Nov 26, 2024
1 parent b79bac7 commit dec6029
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/should_run_monty/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ runs:
working-directory: ${{ inputs.working_directory }}
shell: bash
run: |
git diff --name-only HEAD^1 > changed_files.txt
git diff --name-only ${{ github.sha }}^1 > changed_files.txt
./.github/actions/should_run_monty/check_changed_files.sh
- name: Should run
id: should_run
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
id: filter_by_path_push
working-directory: tbp.monty
run: |
git diff --name-only HEAD^1 > changed_files.txt
git diff --name-only ${{ github.sha }}^1 > changed_files.txt
while IFS= read -r changed_file
do
echo $changed_file
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
id: filter_by_path_push
working-directory: tbp.monty
run: |
git diff --name-only HEAD^1 > changed_files.txt
git diff --name-only ${{ github.sha }}^1 > changed_files.txt
while IFS= read -r changed_file
do
echo $changed_file
Expand Down

0 comments on commit dec6029

Please sign in to comment.