Skip to content

[QI2-1219] Create reusable workflows #1

[QI2-1219] Create reusable workflows

[QI2-1219] Create reusable workflows #1

name: Auto-merge PR's from dependabot
on:
workflow_call:
secrets:
github_token:

Check failure on line 6 in .github/workflows/_dependabot-auto-merge.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/_dependabot-auto-merge.yaml

Invalid workflow file

secret name `github_token` within `workflow_call` can not be used since it would collide with system reserved name
required: true
jobs:
auto-merge-dependabot:
name: Auto merge dependabot PR
if: ${{ (github.event_name == 'pull_request') && (github.actor == 'dependabot[bot]') }}
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- name: Squash and Merge PR from dependabot
uses: fastify/[email protected]
with:
github-token: ${{ secrets.github_token }}
merge-method: squash