Skip to content

Commit

Permalink
Rewrite extract version to bash
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Nov 20, 2019
1 parent 0c5f7ee commit f8a907e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/on_release_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Upload Python Package

on:
release:
types: [published]
types: [published, edited]

jobs:
deploy:
Expand All @@ -11,11 +11,11 @@ jobs:
- uses: actions/checkout@v1
- name: Extract version from tags
id: version
uses: actions/github-script@0.2.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
return context.payload.ref.split('/').pop().split('-')[0];
run: |
echo "GitHub ref ${GITHUB_REF}"
TAG=`echo "${GITHUB_REF}" | cut -f 3 -d "/" | cut -f 1 -d "-"`
echo "Got version ${VERSION}"
echo "##[set-output name=version;]$(echo ${VERSION})
- name: Set up Python
uses: actions/setup-python@v1
with:
Expand Down

0 comments on commit f8a907e

Please sign in to comment.