build(deps): update dependency lru-cache to ^7.18.3 #252
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: | |
pull-requests: write | |
contents: write | |
jobs: | |
dependabot: | |
runs-on: ubuntu-latest | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
steps: | |
- name: Wait for tests to succeed | |
uses: lewagon/[email protected] | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
running-workflow-name: dependabot | |
wait-interval: 15 | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/[email protected] | |
with: | |
github-token: '${{ secrets.GITHUB_TOKEN }}' | |
- name: Enable auto-merge for Dependabot PRs | |
if: >- | |
${{steps.metadata.outputs.update-type == 'version-update:semver-patch' | |
|| contains(steps.metadata.outputs.dependency-names, '@types')}} | |
|| contains(steps.metadata.outputs.dependency-names, 'commitlint')}} | |
|| contains(steps.metadata.outputs.dependency-names, 'eslint')}} | |
run: gh pr merge --squash "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |