From fd8493ad53f10de7b0b08e3c06b42381d3c7efb0 Mon Sep 17 00:00:00 2001 From: Randolf J Date: Wed, 1 Jun 2022 15:49:41 +0200 Subject: [PATCH] chore: use deploy key for pre-release --- .github/workflows/pre-release.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index fbf665b0f56..8db31b25003 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -7,30 +7,24 @@ on: jobs: pre-release: + if: "!startsWith(github.event.head_commit.message, 'chore: freeze version on docs')" runs-on: ubuntu-latest permissions: contents: write - pull-requests: write - actions: write steps: - name: Checkout uses: actions/checkout@v3 + with: + ssh-key: "${{ secrets.SSH_PRIVATE_KEY }}" - name: Install dependencies run: npm install - name: Build run: | node utils/generate_version_file.js IS_RELEASE=1 npm run doc - - name: Get last commit message - id: last-commit-message + - name: Commit run: | - echo "::set-output name=msg::$(git log -1 --pretty=%s)" - - name: Amend commit - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_user_name: 55107282+release-please[bot]@users.noreply.github.com - commit_user_email: release-please[bot] - commit_message: ${{ steps.last-commit-message.outputs.msg }} - commit_options: '--amend --no-edit' - push_options: '--force' - skip_fetch: true + git config --global user.name 'release-please[bot]' + git config --global user.email '55107282+release-please[bot]@users.noreply.github.com' + git commit -am 'chore: freeze version on docs' + git push