mirror of
https://github.com/markqvist/rnsh.git
synced 2025-03-27 17:28:15 -04:00
Update python-publish.yml
This commit is contained in:
parent
5fd2a46d5e
commit
6f87fe3a70
18
.github/workflows/python-publish.yml
vendored
18
.github/workflows/python-publish.yml
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user