Skip to content

Commit

Permalink
chore: Reverse tag check order
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Aug 23, 2023
1 parent 0e1d31a commit 3d3fc26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
- name: Check version
run: |
version=$(poetry version | awk '{print $2}')
tag=$(echo "${{ github.ref || github.event.inputs.tag }}" | awk '{split($0,p,"/"); print p[3]}')
tag=$(echo "${{ github.event.inputs.tag || github.ref }}" | awk '{split($0,p,"/"); print p[3]}')
if [ $version != $tag ]; then echo "Release tag and package version do not match!"; exit 1; fi;
- name: Download artifacts
Expand All @@ -102,7 +102,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
file: dist/*.whl
tag: ${{ github.ref || github.event.inputs.tag }}
tag: ${{ github.event.inputs.tag || github.ref }}
overwrite: true
file_glob: true

Expand Down

0 comments on commit 3d3fc26

Please sign in to comment.