We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff0dc95 commit 79f9745Copy full SHA for 79f9745
.github/workflows/docker.yml
@@ -68,7 +68,8 @@ jobs:
68
- name: Determine version change
69
id: changed-version
70
run: |
71
- CHANGED_FILES=$(git diff --name-only origin/$GITHUB_BASE_REF...HEAD)
+ BASE=${{ github.event_name == 'pull_request' && format('origin/{0}', github.base_ref) || 'HEAD~1' }}
72
+ CHANGED_FILES=$(git diff --name-only $BASE...HEAD)
73
echo $CHANGED_FILES
74
# Looking for:
75
# versions.yaml
0 commit comments