File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,15 @@ jobs:
35
35
id : get_changed_files
36
36
run : |
37
37
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 ansible/docker/test/Dockerfile || true )
39
39
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 ansible/docker/test/Dockerfile || true )
41
41
fi
42
42
echo "changed_files=$changed_files" >> "$GITHUB_ENV"
43
43
44
44
# Generate matrix
45
45
- name : Generate matrix
46
+ if : steps.get_changed_files.outputs.changed_files
46
47
id : generate_matrix
47
48
run : |
48
49
matrix=$(jq -n --arg files "${changed_files}" '{
You can’t perform that action at this time.
0 commit comments