forked from holochain/holochain
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (26 loc) · 925 Bytes
/
autoupdate.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
# Operates on open PRs and automatically merges updates on the target branch into the PR branch.
# Like autorebase.yml, but with merging instead of rebasing.
# Is triggered on a PR if labeled `autoupdate:opt-in`.
name: autoupdate
on:
# Run on every push on develop
push:
branches:
- "develop"
# Run when pull requests get labeled
pull_request:
types: [labeled, opened, ready_for_review, reopened]
branches:
- "develop"
jobs:
autoupdate:
name: autoupdate
runs-on: ubuntu-latest
steps:
- uses: docker://chinthakagodawita/autoupdate-action:v1
env:
GITHUB_TOKEN: "${{ secrets.HRA_GITHUB_TOKEN }}"
PR_FILTER: "labelled"
PR_LABELS: "autoupdate:opt-in"
MERGE_CONFLICT_ACTION: "fail"
MERGE_MSG: "Branch was auto-updated."