Move generate to its own workflow and create commits #60
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: Auto Merge Dependabot PRs | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
workflow_dispatch: | |
permissions: | |
contents: write # Required for merging the PR | |
pull-requests: write # Required for managing pull requests | |
jobs: | |
automerge: | |
if: github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Enable Auto-Merge for Dependabot PR | |
run: gh pr merge ${{ github.event.pull_request.number }} --auto --squash | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |