From 6f87fe3a706c29c13af9048c250350636d96e63c Mon Sep 17 00:00:00 2001 From: Aaron Heise Date: Sun, 12 Feb 2023 01:07:49 -0600 Subject: [PATCH] Update python-publish.yml --- .github/workflows/python-publish.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index acfe999..f0e3553 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -60,19 +60,17 @@ jobs: run: poetry build - name: Set Versions - uses: actions/github-script@v4 + uses: actions/github-script@v6.4.0 id: set_version with: script: | - echo "version=${GITHUB_REF_NAME#*v}" >> $GITHUB_OUTPUT - -# const tag = context.ref.substring(18) -# const no_v = tag.replace('v', '') -# const dash_index = no_v.lastIndexOf('-') -# const no_dash = (dash_index > -1) ? no_v.substring(0, dash_index) : no_v -# core.setOutput('tag', tag) -# core.setOutput('no-v', no_v) -# core.setOutput('no-dash', no_dash) + const tag = context.ref.substring(18) + const no_v = tag.replace('v', '') + const dash_index = no_v.lastIndexOf('-') + const no_dash = (dash_index > -1) ? no_v.substring(0, dash_index) : no_v + core.setOutput('tag', tag) + core.setOutput('no-v', no_v) + core.setOutput('no-dash', no_dash) # - name: Upload a Build Artifact