-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.48 KB
/
automerge.yml
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
name: Merge me test dependencies!
on:
workflow_run:
types:
- completed
workflows:
# List all required workflow names here.
- 'Run test commands'
jobs:
merge-me:
name: Merge me!
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Impersonate update bot
uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- # It is often a desired behavior to merge only when a workflow execution
# succeeds. This can be changed as needed.
name: Merge me!
uses: ridedott/merge-me-action@v2.10.32
with:
# Depending on branch protection rules, a manually populated
# `GITHUB_TOKEN_WORKAROUND` secret with permissions to push to
# a protected branch must be used. This secret can have an arbitrary
# name, as an example, this repository uses `DOTTBOTT_TOKEN`.
#
# When using a custom token, it is recommended to leave the following
# comment for other developers to be aware of the reasoning behind it:
#
# This must be used as GitHub Actions token does not support pushing
# to protected branches.
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
MERGE_METHOD: MERGE
PRESET: DEPENDABOT_MINOR
ENABLED_FOR_MANUAL_CHANGES: 'true'