GH action - auto-update PRs (#5451)

* GH action - auto-update PRs

* .
This commit is contained in:
Jirka Borovec 2021-01-11 13:32:28 +01:00 committed by GitHub
parent 499d5031e8
commit 92bbf2fdd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 5 deletions

View File

@ -1,8 +1,8 @@
name: Recurrent events
on:
# We recommend `pull_request_target` so that github secrets are available.
# In `pull_request` we wouldn't be able to change labels of fork PRs
pull_request_target:
types: [ synchronize ]
push:
branches: [master, "release/*"]
jobs:
@ -13,9 +13,25 @@ jobs:
name: Label PR conflits
runs-on: ubuntu-20.04
steps:
- uses: mschilde/auto-label-merge-conflicts@v2
- uses: mschilde/auto-label-merge-conflicts@v2.0
with:
CONFLICT_LABEL_NAME: "has conflicts"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAX_RETRIES: 3
WAIT_MS: 5000
# autoupdate is a GitHub Action that auto-updates pull requests branches whenever changes land on their destination branch.
# see: https://github.com/marketplace/actions/auto-update
pr-auto-update:
name: Auto-update PR
runs-on: ubuntu-18.04
steps:
- uses: docker://chinthakagodawita/autoupdate-action:v1
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
DRY_RUN: "false"
PR_FILTER: "labelled"
PR_LABELS: "0:] Ready-To-Go"
MERGE_MSG: "Branch was auto-updated."
RETRY_COUNT: "3"
RETRY_SLEEP: "500"