summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorBrad Linden <brad@lindenlab.com>2024-06-18 14:35:22 -0700
committerBrad Linden <brad@lindenlab.com>2024-06-20 17:10:00 -0700
commitaa6161ca94d5bd8640840f981ca8b243b553acaa (patch)
tree2a2b08bc4dd90877f0b5b5399e080084f357eaec /.github/workflows
parente165be000781034c0d56659f3f021b1efb323108 (diff)
Shorten SHA value used in tag id and attempt to fix js/yaml syntax error
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/tag-release.yaml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/tag-release.yaml b/.github/workflows/tag-release.yaml
index 24d8fbb8bf..18fe686d36 100644
--- a/.github/workflows/tag-release.yaml
+++ b/.github/workflows/tag-release.yaml
@@ -33,15 +33,15 @@ jobs:
echo VIEWER_CHANNEL="Second_Life_${CHANNEL:-Develop}" >> ${GITHUB_ENV}
NIGHTLY_DATE=$(date --rfc-3339=date)
echo NIGHTLY_DATE=${NIGHTLY_DATE} >> ${GITHUB_ENV}
- echo TAG_ID="${{ github.sha }}-${{ inputs.project || '${NIGHTLY_DATE}' }}"
+ echo TAG_ID="$(echo ${{ github.sha }} | cut -c1-8)-${{ inputs.project || '${NIGHTLY_DATE}' }}"
- name: Update Tag
uses: actions/github-script@v7.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
- github.rest.git.createRef(
+ github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/${{ env.VIEWER_CHANNEL }}#${{ env.TAG_ID }}",
sha: context.sha
- )
+ })