aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Godbolt <matt@godbolt.org>2023-08-07 22:33:02 -0500
committerMatt Godbolt <matt@godbolt.org>2023-08-07 22:33:02 -0500
commit29434088e1be7a00e05900564abb717a08e90e69 (patch)
treeaab5bd0cdad72f17924737df3c450b2f201f3ed6
parent6c476bbccc58c4eb01bcf08838a093dcadbf2a87 (diff)
downloadcompiler-explorer-gh-8404.tar.gz
compiler-explorer-gh-8404.zip
Attempt at using a tag script instead of a (soon to be deprecated) workflowgh-8404
-rw-r--r--.github/workflows/test-and-deploy.yml11
1 files changed, 8 insertions, 3 deletions
diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml
index 55c10551e..84d59353c 100644
--- a/.github/workflows/test-and-deploy.yml
+++ b/.github/workflows/test-and-deploy.yml
@@ -96,7 +96,12 @@ jobs:
SOURCE_DIR: out/dist-bin
DEST_DIR: dist/gh/${{ needs.build_dist.outputs.branch }}
- name: Tag the commit
- uses: tvdias/github-tagger@v0.0.2
+ uses: actions/github-script@v5
with:
- repo-token: ${{ secrets.GITHUB_TOKEN }}
- tag: gh-${{ github.run_number }}
+ script: |
+ github.rest.git.createRef({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ ref: `refs/tags/gh-${context.runNumber}`,
+ sha: context.sha
+ })