Fix strings not interpolating in weely ci run (#12906)

# Objective

Fix invalid links in weekly CI workflow.

## Solution

Replace env vars with direct evaluation.
This commit is contained in:
Brezak 2024-04-08 19:21:35 +02:00 committed by GitHub
parent de3ec47f3f
commit 627ad6d2cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,7 +90,7 @@ jobs:
--jq '.[0].number')
if [[ -n $previous_issue_number ]]; then
gh issue comment $previous_issue_number \
--body "Weekly pipeline still fails: $FAILED_RUN"
--body "Weekly pipeline still fails: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
else
gh issue create \
--title "$TITLE" \
@ -102,7 +102,6 @@ jobs:
GH_REPO: ${{ github.repository }}
TITLE: Main branch fails to compile on Rust beta.
LABELS: C-Bug,S-Needs-Triage
FAILED_RUN: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
BODY: |
## Weekly CI run has failed.
[The offending run.]($FAILED_RUN)
[The offending run.](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})