-
Notifications
You must be signed in to change notification settings - Fork 946
33 lines (30 loc) · 1.02 KB
/
autoupdate.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
name: Auto Update
on:
# This will trigger on all pushes to all branches.
# push: {}
# Alternatively, you can only trigger if commits are pushed to certain branches, e.g.:
push:
branches:
- current
# - unstable
jobs:
autoupdate:
name: autoupdate
runs-on: ubuntu-22.04
steps:
- uses: chinthakagodawita/autoupdate@v1.7.0
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
DRY_RUN: "false"
PR_FILTER: "labelled"
PR_LABELS: "auto update"
PR_READY_STATE: "all"
# EXCLUDED_LABELS: "do not merge"
MERGE_MSG: "This branch was auto-updated!"
RETRY_COUNT: "5"
RETRY_SLEEP: "300"
MERGE_CONFLICT_ACTION: "ignore"
- run: echo 'We found merge conflicts when updating this PR. Please fix them as soon as you can.'
if: ${{ steps.autoupdate.outputs.conflicted }}
- run: echo 'Good news! No merge conflicts this time around.'
if: ${{ !steps.autoupdate.outputs.conflicted }}