This repository has been archived by the owner on Nov 24, 2023. It is now read-only.
Bump actions/setup-node from 3 to 4 #147
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: Approve and enable auto-merge for Dependabot updates | |
on: | |
pull_request: | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
dependabot: | |
runs-on: ubuntu-22.04 | |
if: ${{ github.actor == 'dependabot[bot]' && !contains(github.head_ref, 'npm_and_yarn') }} | |
steps: | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/[email protected] | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
- uses: actions/checkout@v3 | |
with: | |
# use ref here so we're on the HEAD of the PR branch | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Enable auto-merge for Dependabot PRs | |
run: | | |
set -eu | |
gh pr review --approve "$PR_URL" | |
gh pr merge --auto --merge "$PR_URL" | |
env: | |
PR_URL: ${{ github.event.pull_request.html_url }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |