Skip to content

Commit 79f9745

Browse files
committed
fix: diff against last commit on main branch
Signed-off-by: bo0tzz <[email protected]>
1 parent ff0dc95 commit 79f9745

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/docker.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ jobs:
6868
- name: Determine version change
6969
id: changed-version
7070
run: |
71-
CHANGED_FILES=$(git diff --name-only origin/$GITHUB_BASE_REF...HEAD)
71+
BASE=${{ github.event_name == 'pull_request' && format('origin/{0}', github.base_ref) || 'HEAD~1' }}
72+
CHANGED_FILES=$(git diff --name-only $BASE...HEAD)
7273
echo $CHANGED_FILES
7374
# Looking for:
7475
# versions.yaml

0 commit comments

Comments
 (0)