Skip to content

Combine PRs

Combine PRs #13

Workflow file for this run

name: Combine PRs
on:
schedule:
- cron: '0 1 * * 1' # Monday at 01:00
workflow_dispatch: # allows you to manually trigger the workflow
# The minimum permissions required to run this Action
permissions:
contents: write
pull-requests: write
repository-projects: write
checks: read
jobs:
combine-prs:
runs-on: ubuntu-latest
steps:
- name: combine-prs
id: combine-prs
uses: github/[email protected]
with:
pr_title: '[dependency]: Combine dependabot PRs'
ci_required: false
labels: dependencies
pr_body_header: "# Combined Dependabot PRs ➡️📦⬅️"
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash --subject "$PR_TITLE" "$PR_URL"
env:
PR_URL: ${{ steps.combine-prs.outputs.pr_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_TITLE: '[dependency]: Combine dependabot PRs'