Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Umio-Yasuno committed May 16, 2024
1 parent 568697e commit f45e620
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
@@ -1,6 +1,7 @@
name: release

on:
workflow_dispath:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
Expand All @@ -22,12 +23,12 @@ jobs:
- name: Print Cargo Version
run: cargo -V
- name: Package Version
run: echo "PKG_VER=$(cargo metadata --no-deps --format-version 1 | jq ".packages[].version" | head -n 1)" >> $GITHUB_ENV
run: echo "PKG_VER=$(cargo metadata --no-deps --format-version 1 | jq '"v" + .packages[0].version' | head -n 1)" >> $GITHUB_ENV
- name: Print Package Version
run: echo "$PKG_VER"
- name: Check Version
run: |
if ! [ "$PKG_VER" == "VERSION" ]; then
if ! [ "$PKG_VER" == "$VERSION" ]; then
echo "version does not match tag"
exit 1
fi
Expand Down

0 comments on commit f45e620

Please sign in to comment.