Skip to content

Commit 872d05a

Browse files
authored
Merge pull request #209671 from Homebrew/handle-removed-formulae
workflows/publish-commit-bottles: handle PRs that only remove formulae
2 parents b83bb24 + ef288c1 commit 872d05a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish-commit-bottles.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,10 @@ jobs:
149149
150150
if [[ "$bottles" = "true" ]]
151151
then
152-
if jq --exit-status 'any(.[].filename; startswith("Formula/")) | not'
152+
array_has_unremoved_formulae_filter='any((.filename | startswith("Formula/")) and (.status != "removed"))'
153+
if jq --exit-status ". | $array_has_unremoved_formulae_filter | not"
153154
then
154-
echo '::notice ::PR does not modify formulae; no bottles to publish.'
155+
echo '::notice ::PR does not add or modify formulae; no bottles to publish.'
155156
bottles=false
156157
fi < <(
157158
gh api \

0 commit comments

Comments
 (0)