fix(ci): use github.run_number for the email's run link, not run_id

github.run_id is a global counter across the whole Gitea instance (the
same numbering as the 'task NNNN' IDs in the runner's own logs), not
what Gitea's web UI uses in its /actions/runs/<n> URL - that's the
per-repository run_number. The email's 'Ver execução' link pointed at
a run belonging to a different, unrelated repo/workflow entirely.
This commit is contained in:
2026-09-11 17:59:24 -03:00
parent 66cc105d54
commit c6859bf9e3
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ jobs:
BRANCH="${{ github.ref_name }}"
COMMIT="${{ github.sha }}"
COMMIT_SHORT="${COMMIT:0:7}"
RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}"
YEAR="$(date +%Y)"
if [ "$STATUS" = "success" ]; then

View File

@@ -38,7 +38,7 @@ jobs:
BRANCH="${{ github.ref_name }}"
COMMIT="${{ github.sha }}"
COMMIT_SHORT="${COMMIT:0:7}"
RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}"
YEAR="$(date +%Y)"
if [ "$STATUS" = "success" ]; then