mirror of
https://github.com/markqvist/rnsh.git
synced 2025-03-12 18:26:52 -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
|
||||
|
||||
- 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user