Skip to content

Commit

Permalink
Strip version before the first hyphen
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Nov 20, 2019
1 parent 49d7313 commit 0c5f7ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/on_release_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
return context.payload.ref.replace(/\/refs\/tags\//, '').substr(1);
return context.payload.ref.split('/').pop().split('-')[0];
- name: Set up Python
uses: actions/setup-python@v1
with:
Expand Down

0 comments on commit 0c5f7ee

Please sign in to comment.