mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user