This commit is contained in:
1 parent
205e2ad8a2
commit
73f97d209f
1 file changed
+2
-2
@@ -39,10 +39,10 @@ jobs:
|
||||
|
||||
- name: Create release and upload assets
|
||||
env:
|
||||
TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
set -eu
|
||||
[ -n "${TOKEN}" ] || { echo "ERROR: secret RELEASE_TOKEN is empty or not defined"; exit 1; }
|
||||
[ -n "${TOKEN}" ] || { echo "ERROR: no token available (secrets.GITHUB_TOKEN is empty)"; exit 1; }
|
||||
API="${GITHUB_SERVER_URL}/api/v1/repos/${GITHUB_REPOSITORY}"
|
||||
if [ "${GITHUB_REF_TYPE:-}" = "tag" ]; then
|
||||
TAG="${GITHUB_REF_NAME}"
|
||||
|
||||
Reference in new issue
Block a user