summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Linden <brad@lindenlab.com>2024-06-17 18:38:00 -0700
committerBrad Linden <brad@lindenlab.com>2024-06-17 18:38:00 -0700
commit3da16d1899324b358ac0d27ddd99bf8214f6fb54 (patch)
tree7b1cc6c057bce4f39906cf84f7a539905101fcf6
parent352dff68307ba52ed124aea532e9a49048d8046a (diff)
Attempt to fix tag-release workflow by moving conditional secrets usage into env
-rw-r--r--.github/workflows/tag-release.yaml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/tag-release.yaml b/.github/workflows/tag-release.yaml
index c803d4c6d0..b73ec502f1 100644
--- a/.github/workflows/tag-release.yaml
+++ b/.github/workflows/tag-release.yaml
@@ -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,