diff options
author | Brad Linden <brad@lindenlab.com> | 2024-06-18 14:23:43 -0700 |
---|---|---|
committer | Brad Linden <brad@lindenlab.com> | 2024-06-18 14:31:41 -0700 |
commit | e165be000781034c0d56659f3f021b1efb323108 (patch) | |
tree | a60e36d60be7dc4d0b00462cbf416f421bdac46a /.github | |
parent | 05efb1494ddf2b3e68bc98835dc353f01482c25e (diff) |
Attempt to use provided GITHUB_TOKEN and generate tag id from inputs
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/tag-release.yaml | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/.github/workflows/tag-release.yaml b/.github/workflows/tag-release.yaml index cb9babaea8..24d8fbb8bf 100644 --- a/.github/workflows/tag-release.yaml +++ b/.github/workflows/tag-release.yaml @@ -26,23 +26,22 @@ on: jobs: tag-release: runs-on: ubuntu-latest - env: - LL_TAG_RELEASE_TOKEN: ${{ secrets.LL_TAG_RELEASE_TOKEN }} steps: - name: Setup Env Vars run: | CHANNEL="${{ inputs.channel }}" echo VIEWER_CHANNEL="Second_Life_${CHANNEL:-Develop}" >> ${GITHUB_ENV} - echo NIGHTLY_DATE=$(date --rfc-3339=date) >> ${GITHUB_ENV} + NIGHTLY_DATE=$(date --rfc-3339=date) + echo NIGHTLY_DATE=${NIGHTLY_DATE} >> ${GITHUB_ENV} + echo TAG_ID="${{ github.sha }}-${{ inputs.project || '${NIGHTLY_DATE}' }}" - name: Update Tag uses: actions/github-script@v7.0.1 - if: env.LL_TAG_RELEASE_TOKEN with: - github-token: ${{ env.LL_TAG_RELEASE_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | github.rest.git.createRef( owner: context.repo.owner, repo: context.repo.repo, - ref: "refs/tags/${{ env.VIEWER_CHANNEL }}#${{ env.NIGHTLY_DATE }}", + ref: "refs/tags/${{ env.VIEWER_CHANNEL }}#${{ env.TAG_ID }}", sha: context.sha ) |