From 592bbf3486b2feb67985cb1218ea32ee5c0b4f0c Mon Sep 17 00:00:00 2001 From: Ahmad Nassri Date: Sat, 10 Sep 2022 07:42:36 -0400 Subject: [PATCH] fix: correct ref name --- .github/workflows/push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 970e280..8c2d1d2 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -158,7 +158,7 @@ jobs: - uses: actions/github-script@v6 with: script: | - const { data: { object: { sha } } } = github.rest.git.getRef({ ...context.repo, ref: '${{ matrix.release }}' }) + const { data: { object: { sha } } } = github.rest.git.getRef({ ...context.repo, ref: 'tags/${{ matrix.release }}' }) await github.rest.git.deleteRef({ ...context.repo, ref: 'tags/${{ matrix.alias }}' }).catch(() => {}) await github.rest.git.createRef({ ...context.repo, ref: 'refs/tags/${{ matrix.alias }}', sha })