Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.10.0 to 7.12.0 #108

build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.10.0 to 7.12.0

build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.10.0 to 7.12.0 #108

name: Dependabot auto-squash
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
await-vercel-preview:
name: Await Vercel Preview
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Await Successful Vercel Preview Deployment
uses: wbeuil/wait-for-deployment@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
timeout: 600
dependabot-approve:
name: Approve Dependabot PR
needs: await-vercel-preview
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
dependabot-squash:
name: Squash and merge Dependabot PR
needs: dependabot-approve
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: Auto-Squash Dependabot PR
run: gh pr merge --auto --squash --delete-branch "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}