Skip to content

Commit

Permalink
Use BABEL_BOT token to push types updates to babel/website
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jan 8, 2024
1 parent 8666ee0 commit b4ce46a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,6 @@ jobs:

types-docs-updates:
name: Update Babel types docs
permissions:
contents: write # for Git to git push
runs-on: ubuntu-latest
needs:
- check-release-type
Expand All @@ -297,6 +295,8 @@ jobs:
- uses: actions/checkout@v4
with:
repository: babel/website
fetch-depth: 0 # Otherwise we cannot push
persist-credentials: false # So that we can push with BOT_TOKEN, otherwise it doesn't trigger CI
- name: Download babel-types docs
uses: actions/download-artifact@v3
with:
Expand All @@ -309,7 +309,7 @@ jobs:
git config user.email "babel-bot@users.noreply.github.com"
git checkout -b update-types-docs
git commit -am "docs: update babel types"
git push --force origin update-types-docs
git push --force "https://babel-bot:${{ secrets.BOT_TOKEN }}@github.com/babel/website.git" update-types-docs
- name: Create Pull Request
uses: babel/actions/create-pull-request@v2
env:
Expand Down

0 comments on commit b4ce46a

Please sign in to comment.