Skip to content

Commit c1e4e01

Browse files
authored
Dockerize job depends on check-version (#914)
* dockerize job depends on check-version * prepare-release only run when is_release_version is true * add dev release version to check-version * fix regex for check-version job * fix regex for check-version job * fix regex for check-version job
1 parent 58df845 commit c1e4e01

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
VERSION=$(grep -m1 version Cargo.toml | sed -E 's/.*"(.*)".*/\1/')
1919
TAG_NAME="${{ github.ref_name }}"
2020
21-
if echo "$TAG_NAME" | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+$'; then
21+
if echo "$TAG_NAME" | grep -qE '^v[0-9][0-9]?\.[0-9][0-9]?\.([0-9]|[1-8][0-9])$'; then
2222
echo "is_release_version=true" >> $GITHUB_OUTPUT
2323
if [ "v$VERSION" == "$TAG_NAME" ]; then
2424
echo "Proceeding with tag $TAG_NAME matching Cargo.toml version v$VERSION."
@@ -36,6 +36,7 @@ jobs:
3636
prepare-release:
3737
needs: check-version
3838
runs-on: ubuntu-latest
39+
if: ${{ needs.check-version.outputs.is_release_version == 'true' }}
3940
strategy:
4041
matrix:
4142
runtime:
@@ -105,7 +106,7 @@ jobs:
105106
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
106107

107108
dockerize_and_push:
108-
needs: prepare-release
109+
needs: check-version
109110
runs-on:
110111
group: laos
111112
labels: ubuntu-16-cores

0 commit comments

Comments
 (0)