Skip to content

Commit

Permalink
fix version check ?
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt authored Sep 4, 2024
1 parent 1e4b9fc commit 370b4d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
- name: Get tag
id: vars
run: >-
if [[ "${{ inputs.dev_version }}" ]]; then
if [[ -n "${{ inputs.dev_version }}" ]]; then
echo "tag=${inputs.dev_version}.dev$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_OUTPUT
else
echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
fi
- name: Validate version number
run: >-
if [[ "${{ inputs.dev_version }}" ]]; then
if [[ -n "${{ inputs.dev_version }}" ]]; then
echo "Skipping version validation for dev version via manual trigger"
else
if [[ "${{ github.event.release.prerelease }}" == "true" ]]; then
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:

pypi-publish:
runs-on: ubuntu-latest
if: ${{ ! inputs.dev_version }}
if: ${{ inputs.dev_version }}
needs: build-artifact
steps:
- name: Retrieve release distributions
Expand Down

0 comments on commit 370b4d7

Please sign in to comment.