Skip to content

Commit

Permalink
🔨 Fix "v" prefix stuff (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixr-codes authored May 20, 2024
1 parent d29fc55 commit cc3ca9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
- uses: actions/checkout@v4
- name: Get the release version from the tag
if: env.VERSION == ''
run: echo "VERSION=v${{ github.ref_name }}" >> $GITHUB_ENV
run: echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Show the version
run: |
echo "version is: $VERSION"
- name: Check that tag version and Cargo.toml version are the same
shell: bash
run: |
if ! grep -q "version = \"$VERSION\"" Cargo.toml; then
if ! grep -q "version = \"${VERSION#v}\"" Cargo.toml; then
echo "version does not match Cargo.toml" >&2
exit 1
fi
Expand Down

0 comments on commit cc3ca9c

Please sign in to comment.