ci: explain the github.token name in the log
This commit is contained in:
@@ -11,6 +11,9 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
runs-on: nixos
|
runs-on: nixos
|
||||||
steps:
|
steps:
|
||||||
|
- name: Note about the token
|
||||||
|
run: |
|
||||||
|
echo "Note: github.token / GITHUB_TOKEN is Gitea's own per-job token (GitHub-compatible name). It only works on this repo, expires when the job ends, and nothing is sent to GitHub."
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
@@ -26,6 +29,8 @@ jobs:
|
|||||||
cd dist && sha256sum sirmem-* > SHA256SUMS && cat SHA256SUMS
|
cd dist && sha256sum sirmem-* > SHA256SUMS && cat SHA256SUMS
|
||||||
- name: Create release and upload assets
|
- name: Create release and upload assets
|
||||||
env:
|
env:
|
||||||
|
# Note: github.token / GITHUB_TOKEN is Gitea's own per-job token (GitHub-compatible name).
|
||||||
|
# It only works on this repo, expires when the job ends, and nothing is sent to GitHub.
|
||||||
TOKEN: ${{ github.token }}
|
TOKEN: ${{ github.token }}
|
||||||
SERVER: ${{ github.server_url }}
|
SERVER: ${{ github.server_url }}
|
||||||
REPO: ${{ github.repository }}
|
REPO: ${{ github.repository }}
|
||||||
|
|||||||
Reference in New Issue
Block a user