mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
temp: skip if branch already exists instead of checking for PR
This commit is contained in:
parent
0b46c5408b
commit
f2cce7b7e9
1 changed files with 2 additions and 3 deletions
5
.github/workflows/bump-endpoint.yml
vendored
5
.github/workflows/bump-endpoint.yml
vendored
|
|
@ -63,9 +63,8 @@ jobs:
|
|||
OLD="${{ steps.current.outputs.version }}"
|
||||
BRANCH="bump/endpoint-${NEW}"
|
||||
|
||||
# Skip if a PR for this version already exists
|
||||
if gh pr list --head "$BRANCH" --json number --jq '.[0].number' | grep -q '[0-9]'; then
|
||||
echo "PR for $NEW already open, skipping."
|
||||
if git ls-remote --exit-code --heads origin "$BRANCH" &>/dev/null; then
|
||||
echo "Branch $BRANCH already exists, skipping."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue