Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
XdoctorwhoZ committed Nov 8, 2024
1 parent be6fbb4 commit 614767b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,13 @@ jobs:
run: |
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
- name: Compare tag name and cargo version
run: |
tag_name=$(echo "${GITHUB_REF_NAME}" | cut -d '/' -f 3)
cargo_version=$(cat cargo_version.txt)
if [[ "$tag_name" != "$cargo_version" ]]; then
echo "Tag name ($tag_name) does not match cargo version ($cargo_version)"
exit 1
fi

0 comments on commit 614767b

Please sign in to comment.