Skip to content

Commit c67bc40

Browse files
authored
ci: update build-report.yml
Improve logs.
1 parent 6e536bf commit c67bc40

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build-report.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,19 @@ jobs:
2626
steps:
2727

2828
# Verify for existing token secret set
29-
- name: Check for valid Personal Access Token
29+
- name: Check Personal Access Token secret
3030
env:
3131
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
3232
run: |
33-
33+
SECRETS_URL="${{ github.server_url }}/${{ github.repository }}/settings/secrets/actions"
34+
3435
log_pat_error() {
3536
echo -e "\e[93mTo generate a personal access token (PAT) for GitHub Actions:\e[0m" >&2
3637
echo -e "\e[93m1. Go to \e[94mhttps://github.com/settings/tokens\e[0m" >&2
3738
echo -e "\e[93m2. Click on \e[92mGenerate new token\e[0m\e[93m and then on \e[92mGenerate new token (classic) \e[0m\e[93m\e[0m" >&2
3839
echo -e "\e[93m3. Give your token a name, select the required scopes (e.g., repo), and click on \e[92mGenerate token\e[93m\e[0m" >&2
3940
echo -e "\e[93m4. Copy the generated token" >&2
40-
echo -e "\e[93m5. Go to your repository on GitHub -> Settings -> Secrets -> New repository secret" >&2
41+
echo -e "\e[93m5. Go to your repository: \e[94m$SECRETS_URL\e[93m" >&2
4142
echo -e "\e[93m6. Name the secret \e[94mPAT_TOKEN\e[93m and paste the copied token as the value" >&2
4243
}
4344

0 commit comments

Comments
 (0)