Add GitHub action to automatically update approved PRs. (#6114)
authorMathias Preiner <mathias.preiner@gmail.com>
Thu, 11 Mar 2021 00:09:27 +0000 (16:09 -0800)
committerGitHub <noreply@github.com>
Thu, 11 Mar 2021 00:09:27 +0000 (16:09 -0800)
.github/workflows/update_pr.yml [new file with mode: 0644]

diff --git a/.github/workflows/update_pr.yml b/.github/workflows/update_pr.yml
new file mode 100644 (file)
index 0000000..ae58b7a
--- /dev/null
@@ -0,0 +1,16 @@
+name: PR update
+
+on:
+  push:
+    branches:
+      - 'master'
+jobs:
+  autoupdate:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Automatically update PR
+        uses: adRise/update-pr-branch@v0.4.0
+        with:
+          token: ${{ secrets.ACTION_USER_TOKEN }}
+          base: 'master'
+          required_approval_count: 1