We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c2fa97 commit 2f1fe50Copy full SHA for 2f1fe50
ci/steps/brew-bump.sh
@@ -87,8 +87,16 @@ main() {
87
88
# Find the docs for bump-formula-pr here
89
# https://github.com/Homebrew/brew/blob/master/Library/Homebrew/dev-cmd/bump-formula-pr.rb#L18
90
- # local output
91
- brew bump-formula-pr --version="${VERSION}" code-server --no-browse --no-audit
+ local output
+ if ! output=$(brew bump-formula-pr --version="${VERSION}" code-server --no-browse --no-audit 2>&1); then
92
+ if [[ $output == *"Duplicate PRs should not be opened"* ]]; then
93
+ echo "$VERSION is already submitted"
94
+ exit 0
95
+ else
96
+ echo "$output"
97
+ exit 1
98
+ fi
99
100
}
101
102
main "$@"
0 commit comments