Output job doc URL to allow Rust Log Analyzer to access it

This commit is contained in:
Jakub Beránek 2025-03-13 14:48:18 +01:00
parent aab643f4a7
commit 611764417b
No known key found for this signature in database
GPG key ID: 909CD0D26483516B
2 changed files with 5 additions and 0 deletions

View file

@ -68,6 +68,7 @@ jobs:
timeout-minutes: 360
env:
CI_JOB_NAME: ${{ matrix.name }}
CI_JOB_DOC_URL: ${{ matrix.doc_url }}
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
# commit of PR sha or commit sha. `GITHUB_SHA` is not accurate for PRs.
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}

View file

@ -6,6 +6,10 @@ if [ -n "$CI_JOB_NAME" ]; then
echo "[CI_JOB_NAME=$CI_JOB_NAME]"
fi
if [ -n "$CI_JOB_DOC_URL" ]; then
echo "[CI_JOB_DOC_URL=$CI_JOB_DOC_URL]"
fi
if [ "$NO_CHANGE_USER" = "" ]; then
if [ "$LOCAL_USER_ID" != "" ]; then
id -u user &>/dev/null || useradd --shell /bin/bash -u $LOCAL_USER_ID -o -c "" -m user