Skip to content

build(deps): bump actions/setup-node from 3 to 4 #4

build(deps): bump actions/setup-node from 3 to 4

build(deps): bump actions/setup-node from 3 to 4 #4

Workflow file for this run

name: Dependabot PRs
on:
pull_request:
branches:
- main
jobs:
pr:
uses: ./.github/workflows/pr.yml

Check failure on line 10 in .github/workflows/dependabot.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dependabot.yml

Invalid workflow file

error parsing called workflow ".github/workflows/dependabot.yml" -> "./.github/workflows/pr.yml" : workflow is not reusable as it is missing a `on.workflow_call` trigger
dependabot:
runs-on: ubuntu-latest
needs: [pr]
if: ${{ github.actor == 'dependabot[bot]' }}
permissions:
actions: write
contents: write
pull-requests: write
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Approve the 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 for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}