From 43b4ca68e8db93c981039470e80be24d56ac2cc2 Mon Sep 17 00:00:00 2001 From: martincostello Date: Mon, 17 Oct 2022 15:35:57 +0100 Subject: [PATCH] Fix workflow Use the context instead of the environment variable. --- .github/workflows/update-tags.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-tags.yml b/.github/workflows/update-tags.yml index a7b2d7cb..e67ac3fc 100644 --- a/.github/workflows/update-tags.yml +++ b/.github/workflows/update-tags.yml @@ -3,6 +3,7 @@ name: update-tags on: push: tags: [ v* ] + workflow_dispatch: permissions: contents: write @@ -19,7 +20,7 @@ jobs: uses: actions/github-script@v6 with: script: | - const version = "${{ env.GITHUB_REF_NAME }}".split('.')[0]; + const version = "${{ github.ref_name }}".split('.')[0]; let floating = null; try { floating = await github.rest.git.getRef({