Skip to content

chore(deps-dev): bump fraction.js from 4.2.0 to 4.3.6 #231

chore(deps-dev): bump fraction.js from 4.2.0 to 4.3.6

chore(deps-dev): bump fraction.js from 4.2.0 to 4.3.6 #231

Workflow file for this run

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
});