Skip to content

Commit

Permalink
ci: Fix version check in release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-nitrokey committed Aug 14, 2024
1 parent b5c33f1 commit 366d69b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Check version tag format
run: |
TAG_VERSION="${{ github.event.release.tag_name }}"
if [[ $TAG_VERSION =~ ^v[0-9]+.[0-9]+.[0-9]+$ ]]; then exit 0; else exit 1; fi
if [[ $TAG_VERSION =~ ^v[0-9]+.[0-9]+.[0-9]+(-rc\.[1-9])?$ ]]; then exit 0; else exit 1; fi
- name: Check if version tag and package version are equal
run: |
TAG_VERSION="${{ github.event.release.tag_name }}"
Expand Down Expand Up @@ -82,4 +82,4 @@ jobs:
- name: Publish release
uses: softprops/action-gh-release@v2
with:
files: nitropy-${{ github.event.release.tag_name }}-x64-linux-binary.tar.gz
files: nitropy-${{ github.event.release.tag_name }}-x64-linux-binary.tar.gz
2 changes: 1 addition & 1 deletion .github/workflows/cd-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Check version tag format
run: |
TAG_VERSION="${{ github.event.release.tag_name }}"
if [[ $VERSION_TAG =~ ^v[0-9]+.[0-9]+.[0-9]+(-rc\.[1-9])?$ ]]; then exit 0; else exit 1; fi
if [[ $TAG_VERSION =~ ^v[0-9]+.[0-9]+.[0-9]+(-rc\.[1-9])?$ ]]; then exit 0; else exit 1; fi
- name: Check if version tag and package version are equal
run: |
TAG_VERSION="${{ github.event.release.tag_name }}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cd-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Check version tag format
run: |
$VERSION_TAG="${{ github.event.release.tag_name }}"
if ($VERSION_TAG -match "^v[0-9]+.[0-9]+.[0-9]+$") {exit 0} else {exit 1}
if ($VERSION_TAG -match "^v[0-9]+.[0-9]+.[0-9]+(-rc\.[1-9])?$") {exit 0} else {exit 1}
- name: Check if version tag and package version are equal
run: |
$VERSION_TAG="${{ github.event.release.tag_name }}"
Expand Down Expand Up @@ -175,4 +175,4 @@ jobs:
- name: Publish release
uses: softprops/action-gh-release@v2
with:
files: nitropy-${{ github.event.release.tag_name }}-x64-windows-installer.msi
files: nitropy-${{ github.event.release.tag_name }}-x64-windows-installer.msi

0 comments on commit 366d69b

Please sign in to comment.