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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user