diff --git a/.gitea/workflows/verify.yml b/.gitea/workflows/verify.yml index c5fd66b..611a67b 100644 --- a/.gitea/workflows/verify.yml +++ b/.gitea/workflows/verify.yml @@ -34,7 +34,11 @@ jobs: HEAD_SHA: ${{ github.event.pull_request.head.sha }} run: | printf '%s\n' "$PR_TITLE" | npm run commitlint -- --strict - npm run commitlint -- --strict --from "$BASE_SHA" --to "$HEAD_SHA" + if [[ "$PR_TITLE" =~ ^chore\(release\):\ [0-9]+\.[0-9]+\.[0-9]+$ ]]; then + npm run commitlint -- --strict --from "$HEAD_SHA^" --to "$HEAD_SHA" + else + npm run commitlint -- --strict --from "$BASE_SHA" --to "$HEAD_SHA" + fi security: needs: commits