Skip to content

Commit 366d69b

Browse files
ci: Fix version check in release workflows
1 parent b5c33f1 commit 366d69b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/cd-linux.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Check version tag format
1818
run: |
1919
TAG_VERSION="${{ github.event.release.tag_name }}"
20-
if [[ $TAG_VERSION =~ ^v[0-9]+.[0-9]+.[0-9]+$ ]]; then exit 0; else exit 1; fi
20+
if [[ $TAG_VERSION =~ ^v[0-9]+.[0-9]+.[0-9]+(-rc\.[1-9])?$ ]]; then exit 0; else exit 1; fi
2121
- name: Check if version tag and package version are equal
2222
run: |
2323
TAG_VERSION="${{ github.event.release.tag_name }}"
@@ -82,4 +82,4 @@ jobs:
8282
- name: Publish release
8383
uses: softprops/action-gh-release@v2
8484
with:
85-
files: nitropy-${{ github.event.release.tag_name }}-x64-linux-binary.tar.gz
85+
files: nitropy-${{ github.event.release.tag_name }}-x64-linux-binary.tar.gz

.github/workflows/cd-pypi.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Check version tag format
1818
run: |
1919
TAG_VERSION="${{ github.event.release.tag_name }}"
20-
if [[ $VERSION_TAG =~ ^v[0-9]+.[0-9]+.[0-9]+(-rc\.[1-9])?$ ]]; then exit 0; else exit 1; fi
20+
if [[ $TAG_VERSION =~ ^v[0-9]+.[0-9]+.[0-9]+(-rc\.[1-9])?$ ]]; then exit 0; else exit 1; fi
2121
- name: Check if version tag and package version are equal
2222
run: |
2323
TAG_VERSION="${{ github.event.release.tag_name }}"

.github/workflows/cd-windows.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Check version tag format
1818
run: |
1919
$VERSION_TAG="${{ github.event.release.tag_name }}"
20-
if ($VERSION_TAG -match "^v[0-9]+.[0-9]+.[0-9]+$") {exit 0} else {exit 1}
20+
if ($VERSION_TAG -match "^v[0-9]+.[0-9]+.[0-9]+(-rc\.[1-9])?$") {exit 0} else {exit 1}
2121
- name: Check if version tag and package version are equal
2222
run: |
2323
$VERSION_TAG="${{ github.event.release.tag_name }}"
@@ -175,4 +175,4 @@ jobs:
175175
- name: Publish release
176176
uses: softprops/action-gh-release@v2
177177
with:
178-
files: nitropy-${{ github.event.release.tag_name }}-x64-windows-installer.msi
178+
files: nitropy-${{ github.event.release.tag_name }}-x64-windows-installer.msi

0 commit comments

Comments
 (0)