Remove "v" from the Ruff version number in link to release notes (#92)
## Summary Starting with version 0.5.0 of Ruff, the release/tag name doesn't have a leading "v". This has broken the link to the release notes that get added to the release notes for the pre-commit hook. This fixes it by stripping any "v" from the version number string. See #91. ## Test Plan Tested in a bash shell: ```bash bash-5.2$ TAG_NAME=v0.5.0 bash-5.2$ echo ${TAG_NAME/v} 0.5.0 ``` Will otherwise have to be tested on the next Ruff release.
This commit is contained in:
parent
1dc9eb131c
commit
987f9d7d01
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -57,7 +57,7 @@ jobs:
|
|||||||
echo $TAG_NAME
|
echo $TAG_NAME
|
||||||
gh release create "$TAG_NAME" \
|
gh release create "$TAG_NAME" \
|
||||||
--title "$TAG_NAME" \
|
--title "$TAG_NAME" \
|
||||||
--notes "See: https://github.com/astral-sh/ruff/releases/tag/$TAG_NAME" \
|
--notes "See: https://github.com/astral-sh/ruff/releases/tag/${TAG_NAME/v}" \
|
||||||
--latest
|
--latest
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Loading…
Reference in New Issue
Block a user