Skip to content

Commit ef7aa4a

Browse files
committed
build: skip rules_sass compiler update PR if only macOS binaries changed
1 parent f7a27ab commit ef7aa4a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/rules_sass-compiler-updates.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,19 @@ jobs:
5353
merge-multiple: true
5454
- name: chmod binaries
5555
run: chmod +x src/compiler/built/*
56+
- name: Check for meaningful changes
57+
id: check
58+
run: |
59+
CHANGES=$(git diff --name-only | grep -v "^bazel/rules/rules_sass/src/compiler/built/sass_mac" || true)
60+
if [ -z "$CHANGES" ]; then
61+
echo "Only macOS binaries changed (non-deterministic). Skipping PR."
62+
echo "skip_pr=true" >> $GITHUB_OUTPUT
63+
else
64+
echo "Meaningful changes detected."
65+
echo "skip_pr=false" >> $GITHUB_OUTPUT
66+
fi
5667
- name: Create Pull Request
68+
if: steps.check.outputs.skip_pr != 'true'
5769
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
5870
with:
5971
token: ${{ secrets.ANGULAR_ROBOT_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)