mirror of
https://github.com/rfvgyhn/min-ed-launcher.git
synced 2026-02-04 17:15:42 +00:00
[ci] pass gh token to archive job
This commit is contained in:
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@ -99,6 +99,8 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Archive
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: ci/archive-job-log.sh ${{ needs.publish.outputs.job_id }} >> $GITHUB_OUTPUT
|
||||
outputs:
|
||||
archived_job_url: ${{ steps.archive.outputs.archived_url }}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
set -e
|
||||
|
||||
function log() {
|
||||
echo "$1" >&2
|
||||
@ -12,7 +12,7 @@ log "$api_url"
|
||||
raw_log_url=$(curl -Ls --fail --show-error -o /dev/null \
|
||||
-w %{url_effective} \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
-H "Authorization: Bearer $GITHUB_TOKEN" \
|
||||
-H "Authorization: Bearer $GH_TOKEN" \
|
||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||
"$api_url"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user