-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.14 KB
/
Copy pathupdate_pr.yml
File metadata and controls
39 lines (34 loc) · 1.14 KB
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
39
name: Update PR
on:
push:
branches: [master]
concurrency:
# github.event.pull_request.number || github.ref: pull request number or branch name if not a pull request
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CHECK_PERMISSIONS: 0
permissions: {}
jobs:
update-pr:
name: Update PR branch automatically
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write # Need to update PR
pull-requests: write # Need to update PR
steps:
- id: check-permissions
name: Check action permissions
uses: GitHubSecurityLab/actions-permissions/monitor@bf82d13b9b10051d224345ab9184f5ede0a94289 # v1.0.2-beta9
if: env.CHECK_PERMISSIONS == '1'
- id: update-pr
name: Update PR
uses: adRise/update-pr-branch@e96e796f4ab23ab388016fdaed7092de99bd71cf # v0.11.1
with:
token: ${{ secrets.ACTION_USER_TOKEN }}
base: master
required_approval_count: 0
require_passed_checks: true
require_auto_merge_enabled: false
allow_ongoing_checks: true