Skip to content

Commit

Permalink
fix: Upgrade to Node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
npalm committed Dec 12, 2022
1 parent 2d4efb8 commit 70ace92
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Dependabot auto approve
on: pull_request

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: [self-hosted, linux, X64, philips]
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@5ef00187930bafb52d529e0b9c3dff045dfa9851 # v1.3.5
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Checkout
uses: actions/checkout@v3
- name: Install gh cli
run: .github/bin/gh.sh
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge Dependabot PRs for dev dependencies patch / minor
if: ${{ contains(steps.metadata.outputs.dependency-type, ':development') && 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 }}
- name: Enable auto-merge Dependabot PRs for production dependencies minor
if: ${{ contains(steps.metadata.outputs.dependency-type, ':production') && steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 70ace92

Please sign in to comment.