Skip to content

Commit 273928c

Browse files
check for changes against first commit on pr (#1235)
1 parent 7097562 commit 273928c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-images.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
id: check_changes
106106
run: |
107107
DOCKERFILE_DIR=$(dirname ${{ matrix.file_tag.file }})
108-
FILES_CHANGED=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} -- $DOCKERFILE_DIR)
108+
FILES_CHANGED=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} -- $DOCKERFILE_DIR)
109109
FORCE_PUSH=${{ inputs.push }}
110110
if [ "$FORCE_PUSH" = true ]; then
111111
echo "Force push is enabled, proceeding with build."

0 commit comments

Comments
 (0)