build(deps): bump @mdx-js/react from 3.0.0 to 3.0.1 #65
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto approve and merge PRs by dependabot | |
on: | |
pull_request: | |
branches: [main] | |
types: [opened, edited, reopened, synchronize] | |
env: | |
USER_NAME: ubunchuu[bot] | |
USER_EMAIL: 159746302+ubunchuu-admin@users.noreply.github.com | |
GH_TOKEN: ${{ secrets.TOKEN_GITHUB }} | |
APPROVE_TEXT: Legit to bot β | |
jobs: | |
autoapprovemerge: | |
name: Auto Approve and Merge PR | |
if: github.actor == 'dependabot[bot]' | |
runs-on: ubuntu-22.04 | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Auto approve | |
run: | | |
git config --global user.name "${USER_NAME}" | |
git config --global user.email "${USER_EMAIL}" | |
git config --global credential.helper '!f() { git -c credential.helper=store --push; }; f' | |
gh pr review ${{ github.event.pull_request.number }} --approve --body "${APPROVE_TEXT}" | |
- name: Auto merge | |
run: | | |
git config --global user.name "${USER_NAME}" | |
git config --global user.email "${USER_EMAIL}" | |
curl -X PUT \ | |
-H "Authorization: Bearer ${{ secrets.TOKEN_GITHUB }}" \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/merge?merge_method=merge" |