Skip to content

Commit 5fca0a8

Browse files
authored
Fix comment creation logic in workflow (#1928)
1 parent c86ecc6 commit 5fca0a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/autocomment_staging_links.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
-H "X-GitHub-Api-Version: 2022-11-28" \
3939
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
4040
$CREATE_COMMENT_URL \
41-
| jq -r '.[] | select(.user.login == "github-actions[bot]")'
41+
| jq -r '.[] | select(.user.login == "github-actions[bot]" and ((.body // "") | contains("Staging links:")))'
4242
)
4343
EXISTING_COMMENT_ID=$(jq -r '.id' <<<"$EXISTING_COMMENT_JSON")
4444
EXISTING_COMMENT=$(jq -r '.body' <<<"$EXISTING_COMMENT_JSON")

0 commit comments

Comments
 (0)