👷 disable auto push

This commit is contained in:
yanyongyu
2022-02-16 14:28:44 +08:00
parent 98e0ec27ee
commit 004a308765
2 changed files with 18 additions and 1 deletions

View File

@ -22,6 +22,9 @@ jobs:
with: with:
token: ${{ secrets.GH_TOKEN }} token: ${{ secrets.GH_TOKEN }}
- name: Setup Node Environment
uses: ./.github/actions/setup-node
- uses: release-drafter/release-drafter@v5 - uses: release-drafter/release-drafter@v5
id: release-drafter id: release-drafter
env: env:
@ -33,6 +36,17 @@ jobs:
changelog_file: website/src/pages/changelog.md changelog_file: website/src/pages/changelog.md
latest_changes_position: '# 更新日志\n\n' latest_changes_position: '# 更新日志\n\n'
changelog_body: ${{ steps.release-drafter.outputs.body }} changelog_body: ${{ steps.release-drafter.outputs.body }}
commit_and_push: false
- name: Commit and Push
run: |
yarn prettier
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
git add .
git commit -m ":memo: Update changelog"
git push
release: release:
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')

View File

@ -29,9 +29,12 @@ jobs:
with: with:
changelog_file: website/src/pages/changelog.md changelog_file: website/src/pages/changelog.md
archive_title: ${{ env.TAG_NAME }} archive_title: ${{ env.TAG_NAME }}
commit_and_push: false
- name: Archive Files - name: Archive Files
run: yarn archive $(poetry version -s) run: |
yarn archive $(poetry version -s)
yarn prettier
- name: Push Tag - name: Push Tag
run: | run: |