Skip to content

Update dependency myst_parser to v4.0.1 #1682

Update dependency myst_parser to v4.0.1

Update dependency myst_parser to v4.0.1 #1682

name: Auto approve and merge PRs by dependabot
# Trigger the workflow on pull request
on: pull_request
#permissions:
# pull-requests: write
# contents: write
jobs:
auto-approve:
name: Automatically approve dependabot PRs
runs-on: ubuntu-latest
env:
is_bot1: ${{ github.actor == 'dependabot[bot]' }}
is_bot2: ${{ github.actor == 'dependabot-preview[bot]' }}
permissions:
pull-requests: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
with:
disable-sudo: true
egress-policy: block
disable-telemetry: false
allowed-endpoints: >
api.github.com:443
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@d7267f607e9d3fb96fc2fbe83e0af444713e90b7 # v2.3.0
with:
skip-verification: true
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' }}
continue-on-error: true
- name: Auto approve patch and minor
env:
is_patch: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
is_minor: ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' }}
if: ${{ (env.is_patch || env.is_minor) && (env.is_bot1 || env.is_bot2) }}
uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
# Perform the auto-approve action only when the PR is raised by dependabot and is a minor or patch
with:
# Create a personal access token and store it under the Secrets section of the particular repository
# with the key "DEPENDABOT_ACTIONS_TOKEN"
github-token: ${{ secrets.DEPENDABOT_ACTIONS_SECRET }}
continue-on-error: true
- name: Auto merge
uses: pascalgn/automerge-action@7961b8b5eec56cc088c140b56d864285eabd3f67 # v0.16.4
# Perform the auto-merge action only when the PR is raised by dependabot for patch or minor
if: ${{ (env.is_patch || env.is_minor) && (env.is_bot1 || env.is_bot2) }}
env:
GITHUB_TOKEN: ${{ secrets.DEPENDABOT_ACTIONS_SECRET }}
# Whenever dependabot raises a PR, it automatically assigns a label named "dependencies"
# Merges those PRs labelled "dependencies" only
MERGE_LABELS: dependencies
MERGE_METHOD: rebase
continue-on-error: true