mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 20:20: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 }}"
|
OLD="${{ steps.current.outputs.version }}"
|
||||||
BRANCH="bump/endpoint-${NEW}"
|
BRANCH="bump/endpoint-${NEW}"
|
||||||
|
|
||||||
# Skip if a PR for this version already exists
|
if git ls-remote --exit-code --heads origin "$BRANCH" &>/dev/null; then
|
||||||
if gh pr list --head "$BRANCH" --json number --jq '.[0].number' | grep -q '[0-9]'; then
|
echo "Branch $BRANCH already exists, skipping."
|
||||||
echo "PR for $NEW already open, skipping."
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue