Skip to content

Commit

Permalink
ci: diff against GITHUB_BASE_REF on build package action
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilva committed Oct 30, 2024
1 parent b3c33f5 commit 868d80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-changed-flake-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: |
changed_packages=()
for package in $(nix flake show --json | jq -r '.packages."x86_64-linux" | keys[]'); do
if git diff --name-only "HEAD^" "HEAD" | grep -q "$package"; then
if git diff --name-only $GITHUB_BASE_REF | grep -q "$package"; then
changed_packages+=("$package")
fi
done
Expand Down

0 comments on commit 868d80e

Please sign in to comment.