Update python-publish.yml

This commit is contained in:
Aaron Heise 2023-02-12 01:07:49 -06:00 committed by GitHub
parent 5fd2a46d5e
commit 6f87fe3a70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,19 +60,17 @@ jobs:
run: poetry build run: poetry build
- name: Set Versions - name: Set Versions
uses: actions/github-script@v4 uses: actions/github-script@v6.4.0
id: set_version id: set_version
with: with:
script: | script: |
echo "version=${GITHUB_REF_NAME#*v}" >> $GITHUB_OUTPUT const tag = context.ref.substring(18)
const no_v = tag.replace('v', '')
# const tag = context.ref.substring(18) const dash_index = no_v.lastIndexOf('-')
# const no_v = tag.replace('v', '') const no_dash = (dash_index > -1) ? no_v.substring(0, dash_index) : no_v
# const dash_index = no_v.lastIndexOf('-') core.setOutput('tag', tag)
# const no_dash = (dash_index > -1) ? no_v.substring(0, dash_index) : no_v core.setOutput('no-v', no_v)
# core.setOutput('tag', tag) core.setOutput('no-dash', no_dash)
# core.setOutput('no-v', no_v)
# core.setOutput('no-dash', no_dash)
# - name: Upload a Build Artifact # - name: Upload a Build Artifact