fix: fix release CI error (#160)

* fix release CI error

* reset version

* fix error code

* change private_key path

* add pr title  rules

* reset version
This commit is contained in:
Linlang
2024-08-05 17:34:03 +08:00
committed by GitHub
parent 420dbbe584
commit 06e1c705d2
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ jobs:
steps:
- name: Check PR Title for Conventional Commit Format
run: |
if ! echo "${{ github.event.pull_request.title }}" | grep -Pq '^(build|chore|ci|deps|doc|docs|feat|fix|perf|ref|refactor|revert|style|test|tests)(\(\w+\))?!?:\s.*'; then
if ! echo "${{ github.event.pull_request.title }}" | grep -Pq '^(build|chore|ci|deps|doc|docs|feat|fix|perf|ref|refactor|revert|style|test|tests|Bump version)(\(\w+\))?!?:\s.*'; then
echo 'The title does not conform to the Conventional Commit.'
echo 'Please refer to "https://www.conventionalcommits.org/"'
exit 1
+3 -3
View File
@@ -33,10 +33,10 @@ jobs:
echo "new_version=$NEW_VERSION" >> $GITHUB_ENV
echo "New version: $NEW_VERSION"
- name: Push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push --follow-tags
echo "${{ secrets.PRIVATE_KEY }}" >> ~/private_key
chmod 600 ~/private_key
GIT_SSH_COMMAND="ssh -i ~/private_key" git push --follow-tags
- name: Generate changelog
run: |
make changelog