Skip to content

Commit 9915b61

Browse files
committed
fix(pre-commit-update): make idempotent
1 parent 242b81b commit 9915b61

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/pre-commit-update.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,8 @@ jobs:
3939
env:
4040
GH_TOKEN: ${{ github.token }}
4141
run: |
42-
gh pr create --fill
42+
if [[ -z "$(gh pr list --head bump-pre-commit-hooks --json number --jq '.[0].number')" ]]; then
43+
gh pr create --fill
44+
else
45+
echo "PR already exists for bump-pre-commit-hooks branch"
46+
fi

0 commit comments

Comments
 (0)