Fix correct run number

This commit is contained in:
pazpi 2025-12-07 22:15:05 +01:00
parent d59ce13442
commit 28e9ef6a2c

View file

@ -177,7 +177,7 @@ jobs:
FAILED_HOSTS="\n- (Unable to determine failed hosts - check workflow logs)" FAILED_HOSTS="\n- (Unable to determine failed hosts - check workflow logs)"
fi fi
ISSUE_BODY="Weekly flake update failed to build some hosts.\n\n**Branch:** \`${{ steps.branch.outputs.branch_name }}\`\n**Run:** ${{ forge.server_url }}/${{ forge.repository }}/actions/runs/${{ forge.run_id }}\n\n**Failed hosts:**$FAILED_HOSTS\n$FAILURE_DETAILS\n\nGenerated on: $(date -Iseconds)" ISSUE_BODY="Weekly flake update failed to build some hosts.\n\n**Branch:** \`${{ steps.branch.outputs.branch_name }}\`\n**Run:** ${{ forge.server_url }}/${{ forge.repository }}/actions/runs/${{ forge.run_number }}\n\n**Failed hosts:**$FAILED_HOSTS\n$FAILURE_DETAILS\n\nGenerated on: $(date -Iseconds)"
curl -X POST \ curl -X POST \
-H "Authorization: token $FORGEJO_TOKEN" \ -H "Authorization: token $FORGEJO_TOKEN" \
@ -186,7 +186,7 @@ jobs:
\"title\": \"Build failure: weekly flake update $(date +%Y-%m-%d)\", \"title\": \"Build failure: weekly flake update $(date +%Y-%m-%d)\",
\"body\": \"$ISSUE_BODY\" \"body\": \"$ISSUE_BODY\"
}" \ }" \
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/issues" "${{ forge.server_url }}/api/v1/repos/${{ forge.repository }}/issues"
- name: Cleanup - name: Cleanup
if: always() if: always()