From c8d316477f0ca5e5cf57937fae98e9df3b668dff Mon Sep 17 00:00:00 2001 From: patrick brisbin Date: Thu, 4 Apr 2024 09:29:56 -0400 Subject: [PATCH] Expand debug release script --- .github/workflows/release.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cf76f02..51ccfbb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,10 +30,21 @@ jobs: with: script: | async function run() { + const {data: tag} = await github.rest.git.getRef({ + ...context.repo, + ref: "tags/v2.0.1" + }); + + console.log(tag); + + const sha = tag.object.sha; + + console.log(sha); + const x = await github.rest.git.updateRef({ ...context.repo, ref: "v2", - sha: "v2.0.1", + sha: sha, force: true });