Skip to content

Commit 5e71afa

Browse files
committed
fixed PR idempotency
1 parent efe42b6 commit 5e71afa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/update-timestamps.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,11 @@ jobs:
123123
run: |
124124
set +e
125125
gh pr list --json headRefName --jq '.[].headRefName' | grep auto/bump-timestamps
126-
echo "pr_exists=$?" >> "$GITHUB_OUTPUT"
126+
PR_EXISTS=$?
127+
echo "pr_exists=$PR_EXISTS" >> "$GITHUB_OUTPUT"
127128
128129
- name: Create PR
129-
if: steps.pr-check.outputs.pr_exists
130+
if: steps.pr-check.outputs.pr_exists == '0'
130131
run: gh pr create --title "[Auto] Bump repo timestamps to latest" --base main --head auto/bump-timestamps --body "Updated Release Train timestamps in defaults.yml with latest from Ark"
131132
env:
132133
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)