mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: use deploy key for pre-release
This commit is contained in:
parent
d2a0ea34a3
commit
fd8493ad53
22
.github/workflows/pre-release.yml
vendored
22
.github/workflows/pre-release.yml
vendored
@ -7,30 +7,24 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre-release:
|
pre-release:
|
||||||
|
if: "!startsWith(github.event.head_commit.message, 'chore: freeze version on docs')"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
|
||||||
actions: write
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ssh-key: "${{ secrets.SSH_PRIVATE_KEY }}"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
node utils/generate_version_file.js
|
node utils/generate_version_file.js
|
||||||
IS_RELEASE=1 npm run doc
|
IS_RELEASE=1 npm run doc
|
||||||
- name: Get last commit message
|
- name: Commit
|
||||||
id: last-commit-message
|
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=msg::$(git log -1 --pretty=%s)"
|
git config --global user.name 'release-please[bot]'
|
||||||
- name: Amend commit
|
git config --global user.email '55107282+release-please[bot]@users.noreply.github.com'
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
git commit -am 'chore: freeze version on docs'
|
||||||
with:
|
git push
|
||||||
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user