File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,15 @@ jobs:
3535 id : get_changed_files
3636 run : |
3737 if [ ${{ github.event_name }} == "push" ]; then
38- changed_files=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep ansible/docker/test/Dockerfile)
38+ changed_files=$(git diff --name-only HEAD~1 | grep -v ansible/docker/test/Dockerfile)
3939 else
40- changed_files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} | grep ansible/docker/test/Dockerfile)
40+ changed_files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} | grep -v ansible/docker/test/Dockerfile)
4141 fi
4242 echo "changed_files=$changed_files" >> "$GITHUB_ENV"
4343
4444 # Generate matrix
4545 - name : Generate matrix
46+ if : steps.get_changed_files.outputs.changed_files
4647 id : generate_matrix
4748 run : |
4849 matrix=$(jq -n --arg files "${changed_files}" '{
You can’t perform that action at this time.
0 commit comments