set token from FORGEJO_TOKEN in the test environment

This commit is contained in:
Earl Warren 2023-03-30 16:28:59 +02:00
parent cb070c9a96
commit 25027fcba8
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
3 changed files with 6 additions and 4 deletions

View file

@ -52,10 +52,10 @@ runs:
export DOER="${{ inputs.doer }}"
export TOKEN="${{ inputs.token }}"
if test -z "$TOKEN"; then
export TOKEN="${{ github.token }}"
export TOKEN="${{ secrets.GITHUB_TOKEN }}"
fi
if test -z "$TOKEN"; then
export TOKEN="${{ secrets.GITHUB_TOKEN }}"
export TOKEN="${{ github.token }}"
fi
test "$TOKEN"
export RELEASE_DIR="${{ inputs.release-dir }}"