1
0
mirror of synced 2026-01-06 06:02:35 -05:00

Be more careful about finding previous report (#20831)

This commit is contained in:
Matt Pollard
2021-08-23 11:04:43 +02:00
committed by GitHub
parent d35cbf18a3
commit 9f5232b18a

View File

@@ -62,13 +62,14 @@ jobs:
# Link to the previous report from the new report that triggered this
# workflow run.
for issue_url in $(gh list-reports \
previous_report_url=$(gh list-reports \
--state all \
--limit 2 \
--json url \
--jq '.[].url' | grep -v ${{ env.NEW_REPORT_URL }}); do
gh issue comment ${{ env.NEW_REPORT_URL }} --body "⬅️ [Previous report]($issue_url)"
done
--jq '.[].url' \
| grep -v ${{ env.NEW_REPORT_URL }} | head -1)
gh issue comment ${{ env.NEW_REPORT_URL }} --body "⬅️ [Previous report]($previous_report_url)"
# Link to the newer report from any older report that is still open,
# then close the older report.