This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
chore(deps-dev): bump @typescript-eslint/parser from 6.21.0 to 8.1.0 #3367
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: Dependabot auto-merge | |
on: pull_request_target | |
permissions: read-all | |
jobs: | |
dependabot: | |
runs-on: ubuntu-latest | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
permissions: | |
pull-requests: write | |
contents: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1 | |
with: | |
egress-policy: block | |
allowed-endpoints: > | |
api.github.com:443 | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/fetch-metadata@c9c4182bf1b97f5224aee3906fd373f6b61b4526 # v1.1.1 | |
with: | |
github-token: '${{ secrets.GITHUB_TOKEN }}' | |
- name: Enable auto-merge for Dependabot PRs | |
if: | | |
steps.metadata.outputs.dependency-type != 'indirect' | |
&& steps.metadata.outputs.update-type != 'version-update:semver-major' | |
run: | | |
if [ "$(gh pr view "$PR_URL" --json reviewDecision -q .reviewDecision)" != "APPROVED" ]; then | |
gh pr review --approve "$PR_URL" | |
else | |
echo "PR already approved, skipping additional approvals to minimize emails/notification noise." | |
fi | |
gh pr merge --auto --squash "$PR_URL" | |
gh pr edit "$PR_URL" --add-label "auto-merge" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |