mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
Add permission to release action and fix missing text on post-commit hook
This commit is contained in:
parent
4bda98c40d
commit
a689492075
@ -2,9 +2,9 @@
|
||||
version=`git diff HEAD^..HEAD -- "$(git rev-parse --show-toplevel)"/pyproject.toml | grep -m 1 '^\+.*version' | sed -s 's/[^A-Z0-9\.\-]//g'`
|
||||
|
||||
if [[ ! $version =~ ^([0-9]+)\.([0-9]+)\.([0-9]+)(\-[A-Z]+\.[0-9]+)?$ ]]; then
|
||||
echo -e "Skip tag: invalid version '$version'"
|
||||
echo -e "Skip tag: invalid version 'v$version'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git tag -a "v$version" -m "`git log -1 --format=%s`"
|
||||
echo "Created a new tag, $version"
|
||||
echo "Created a new tag, v$version"
|
2
.github/workflows/tag-to-release.yml
vendored
2
.github/workflows/tag-to-release.yml
vendored
@ -5,6 +5,8 @@ on:
|
||||
|
||||
name: Create releases on tag push
|
||||
|
||||
permissions: write-all
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Create release
|
||||
|
Loading…
x
Reference in New Issue
Block a user