Skip to content

Commit

Permalink
ci: run diff against remote branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hknutsen committed Jan 2, 2025
1 parent ab74de0 commit 156069c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
id: build
shell: bash {0} # Required to check exit code
run: |
git diff --exit-code --merge-base "$GITHUB_BASE_REF" -- "$BICEP_FILE_PATH"
git diff --exit-code --merge-base "origin/$GITHUB_BASE_REF" "$BICEP_FILE_PATH"
exit_code="$?"
if [[ "$exit_code" == 0 ]]; then
echo "No changes made to Bicep file. Skipping build."
Expand Down

0 comments on commit 156069c

Please sign in to comment.