chore(deps-dev): bump assert from 2.0.0 to 2.1.0 #230
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: Auto approve and merge Dependabot PRs | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
branches: | |
- main | |
jobs: | |
auto-approve-and-merge: | |
runs-on: ubuntu-latest | |
if: github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Approve PR | |
uses: actions/github-script@v3 | |
with: | |
github-token: ${{ secrets.PAT }} | |
script: | | |
github.pulls.createReview({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
pull_number: context.issue.number, | |
event: 'APPROVE' | |
}); | |
- name: Add label | |
uses: actions/github-script@v3 | |
with: | |
github-token: ${{ secrets.PAT }} | |
script: | | |
github.issues.addLabels({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.issue.number, | |
labels: ['approved'] | |
}); | |
- name: Merge PR | |
uses: actions/github-script@v3 | |
with: | |
github-token: ${{ secrets.PAT }} | |
script: | | |
github.pulls.merge({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
pull_number: context.issue.number | |
}); |