-
Notifications
You must be signed in to change notification settings - Fork 14
47 lines (42 loc) · 1.28 KB
/
combine-dependabot-pr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Combine PRs
'on':
schedule:
# yamllint disable-line rule:quoted-strings
- cron: '0 1 * * 0' # Sunday at 01:00 AM
workflow_dispatch: # allows you to manually trigger the workflow
inputs:
logLevel:
description: Log level
required: true
default: warning
type: choice
options:
- info
- warning
- debug
# 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 dependabot prs
id: combine-prs
uses: github/[email protected]
with:
pr_title: '[dependency]: Combine dependabot PRs'
ci_required: true
branch_prefix: dependabot
labels: dependencies
pr_body_header: '# Combined Dependabot PRs ➡️📦⬅️'
- name: Enable auto-merge for Dependabot PRs
if: ${{ steps.combine-prs.outputs.pr_url }}
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'