build(deps-dev): bump @types/node from 20.14.13 to 22.0.0 #354
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: Dependabot auto-approve/merge | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize, labeled] | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
dependabot: | |
runs-on: ubuntu-latest | |
if: ${{ contains(github.event.pull_request.labels.*.name, 'github_actions') && github.actor == 'dependabot[bot]' }} | |
steps: | |
- name: Wait for build to succeed | |
uses: fountainhead/[email protected] | |
id: wait-for-build3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
checkName: Lint code | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
- name: Wait for build to succeed | |
uses: fountainhead/[email protected] | |
id: wait-for-build4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
checkName: Run tests (18.x) | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
- name: Wait for build to succeed | |
uses: fountainhead/[email protected] | |
id: wait-for-build5 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
checkName: Run tests (19.x) | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
- name: Wait for build to succeed | |
uses: fountainhead/[email protected] | |
id: wait-for-build6 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
checkName: Run tests (20.x) | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
- name: Wait for build to succeed | |
uses: fountainhead/[email protected] | |
id: wait-for-build7 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
checkName: Run tests (21.x) | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
- name: Dependabot metadata | |
if: steps.wait-for-build.outputs.conclusion == 'success' && steps.wait-for-build2.outputs.conclusion == 'success' && steps.wait-for-build3.outputs.conclusion == 'success' && steps.wait-for-build4.outputs.conclusion == 'success' && steps.wait-for-build5.outputs.conclusion == 'success' && steps.wait-for-build6.outputs.conclusion == 'success' && steps.wait-for-build7.outputs.conclusion == 'success' | |
id: metadata | |
uses: dependabot/[email protected] | |
with: | |
github-token: '${{ secrets.GITHUB_TOKEN }}' | |
- name: Approve a PR | |
if: steps.wait-for-build.outputs.conclusion == 'success' && steps.wait-for-build2.outputs.conclusion == 'success' && steps.wait-for-build3.outputs.conclusion == 'success' && steps.wait-for-build4.outputs.conclusion == 'success' && steps.wait-for-build5.outputs.conclusion == 'success' && steps.wait-for-build6.outputs.conclusion == 'success' && steps.wait-for-build7.outputs.conclusion == 'success' && steps.metadata.outputs.update-type != 'version-update:semver-major' | |
run: gh pr review --approve "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Auto-merge Dependabot PRs | |
if: steps.wait-for-build.outputs.conclusion == 'success' && steps.wait-for-build2.outputs.conclusion == 'success' && steps.wait-for-build3.outputs.conclusion == 'success' && steps.wait-for-build4.outputs.conclusion == 'success' && steps.wait-for-build5.outputs.conclusion == 'success' && steps.wait-for-build6.outputs.conclusion == 'success' && steps.wait-for-build7.outputs.conclusion == 'success' && steps.metadata.outputs.update-type != 'version-update:semver-major' | |
run: gh pr merge --auto --merge "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |