Skip to content

Commit

Permalink
ci: fix tag is pushed after update-release and ci can recognize -rcX …
Browse files Browse the repository at this point in the history
…version
  • Loading branch information
loloicci committed Aug 25, 2023
1 parent cb27bb2 commit 3db9180
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ jobs:
id: get-package-version
working-directory: ./libwasmvm
run: |
VERSION=$(cargo tree -i wasmvm | grep -oE "[0-9]+(\.[0-9]+){2}-[0-9]+(\.[0-9]+){2}")
VERSION=$(cargo tree -i wasmvm | grep -oE "[0-9]+(\.[0-9]+){2}-[0-9]+(\.[0-9]+){2}(-[0-9a-zA-Z.]+)*(\+[0-9a-zA-Z.])*")
echo ::set-output name=version::v$VERSION
push-tag: # if the version does not exist as git tag, push it
name: Push Tag
needs:
- get-version
- update-release
if: ${{ needs.get-version.outputs.package-version != needs.get-version.outputs.latest-tag }}
runs-on: ubuntu-latest
steps:
Expand All @@ -52,7 +53,7 @@ jobs:
name: Update releases
needs:
- get-version
- push-tag
- push-tag
if: ${{ needs.get-version.outputs.package-version != needs.get-version.outputs.latest-tag }}
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit 3db9180

Please sign in to comment.