From c6859bf9e39249816f808dea12ec529254e6c77f Mon Sep 17 00:00:00 2001 From: "Developer @ Loverde Company" Date: Fri, 11 Sep 2026 17:59:24 -0300 Subject: [PATCH] fix(ci): use github.run_number for the email's run link, not run_id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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/ 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. --- .gitea/workflows/beta.yml | 2 +- .gitea/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/beta.yml b/.gitea/workflows/beta.yml index 417e6f6..1e96a57 100644 --- a/.gitea/workflows/beta.yml +++ b/.gitea/workflows/beta.yml @@ -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 diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 970cdee..07f67a9 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -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