Bump react-markdown from 8.0.7 to 9.0.3 #850
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: Review Dependabot PRs | |
on: | |
pull_request_target: | |
branches: [main] | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
review-dependabot-pr: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.user.login == 'dependabot[bot]' }} | |
steps: | |
- uses: otto-de/purge-deprecated-workflow-runs@v2 | |
with: | |
remove-obsolete: false | |
remove-skipped: | | |
${{ github.workflow }} | |
- name: Dependabot metadata | |
id: dependabot-metadata | |
uses: dependabot/fetch-metadata@v2.2.0 | |
with: | |
alert-lookup: true | |
compat-lookup: true | |
skip-commit-verification: true | |
github-token: ${{ github.token }} | |
- name: Enable auto-merge for Dependabot PRs | |
run: gh pr merge --auto --squash "$PR_URL" | |
env: | |
PR_URL: ${{ github.event.pull_request.html_url }} | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Approve patch and minor updates | |
if: ${{steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' || steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor'}} | |
run: gh pr review $PR_URL --approve -b "I'm **approving** this pull request because **it includes a patch or minor update**" | |
env: | |
PR_URL: ${{ github.event.pull_request.html_url }} | |
GITHUB_TOKEN: ${{ github.token }} |