generated from jeswr/template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.26 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
name: automerge
on:
# Trigger on Pull Requests against the master branch.
pull_request_target:
branches:
- main
types:
- opened
- synchronize
# Trigger on Pull Requests to the master branch.
push:
branches:
- main
status: {}
jobs:
merge-me:
name: automerge
runs-on: ubuntu-latest
steps:
- # It is often a desired behavior to merge only when a workflow execution
# succeeds. This can be changed as needed.
if: ${{ contains(github.event.pull_request.labels.*.name, 'automerge') }}
name: automerge
uses: ridedott/merge-me-action@v2
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: ${{ secrets.GITHUB_TOKEN }}