Attempt to fix tag-release workflow by moving conditional secrets usage into env

master
Brad Linden 2024-06-17 18:38:00 -07:00
parent 352dff6830
commit 3da16d1899
1 changed files with 4 additions and 2 deletions

View File

@ -26,6 +26,8 @@ on:
jobs:
tag-release:
runs-on: ubuntu-latest
env:
GITHUB_TAG_TOKEN: ${{ secrets.GITHUB_TAG_TOKEN }}
steps:
- name: Setup Env Vars
run: |
@ -34,9 +36,9 @@ jobs:
echo NIGHTLY_DATE=$(date --rfc-3339=date) >> ${GITHUB_ENV}
- name: Update Tag
uses: actions/github-script@v7.0.1
if: ${{ secrets.GITHUB_NIGHTLY_TOKEN != "" }}
if: env.GITHUB_TAG_TOKEN
with:
github-token: ${{ secrets.GITHUB_NIGHTLY_TOKEN }}
github-token: ${{ env.GITHUB_TAG_TOKEN }}
script: |
github.rest.git.createRef(
owner: context.repo.owner,