fix: use proper conditional expression for token fallback
- Use conditional expression to check if GH_PAT exists before using it - Fallback to GITHUB_TOKEN if GH_PAT is not set or empty - This fixes the 'token not supplied' error
This commit is contained in:
4
.github/workflows/release-manual.yml
vendored
4
.github/workflows/release-manual.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
token: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }}
|
||||
token: ${{ secrets.GH_PAT != '' && secrets.GH_PAT || secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Validate version
|
||||
run: |
|
||||
@@ -77,7 +77,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
token: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }}
|
||||
token: ${{ secrets.GH_PAT != '' && secrets.GH_PAT || secrets.GITHUB_TOKEN }}
|
||||
ref: 'main'
|
||||
|
||||
- name: Download all artifacts
|
||||
|
||||
Reference in New Issue
Block a user