Validate Tag
This commit is contained in:
1 parent
fb2a0865ee
commit
b987f7c21c
1 file changed
+3
-1
@@ -49,7 +49,9 @@ jobs:
|
||||
TAG_NAME: ${{ gitea.ref_name }}
|
||||
run: |
|
||||
VERSION="${TAG_NAME#v}"
|
||||
grep -qE "^## (v)?${VERSION} " CHANGELOG.md
|
||||
echo "$VERSION" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+[0-9A-Za-z._-]*$'
|
||||
BASE_VERSION=$(echo "$VERSION" | sed -E 's/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
|
||||
grep -qE "^## (v)?${BASE_VERSION}[[:space:]]" CHANGELOG.md
|
||||
test -s LICENSE
|
||||
test -s THIRD_PARTY_NOTICES.md
|
||||
- name: Static analysis
|
||||
|
||||
Reference in new issue
Block a user