generated from iadvize/hello-world-javascript-library
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (27 loc) · 911 Bytes
/
rebase.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
name: Rebase pull requests when master change
on:
pull_request:
types: [labeled]
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-18.04
name: 'Rebase branch on master'
steps:
- name: 'Checkout repository'
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN_REPO_WRITE }}
- name: 'Rebase one pull request based on master with label'
uses: iadvize/actions/rebase-pull-requests@5598823e476f2c2a6c2aa8b13e776708dcb68ec3
with:
# we use another token here
# because an action in a workflow run can't trigger a new workflow run
# with the GITHUB_TOKEN
# @see https://help.github.com/en/articles/events-that-trigger-workflows#event-restrictions
token: ${{ secrets.GITHUB_TOKEN_REPO_WRITE }}
label: 'Action: keep-rebased-then-merge'
onlyOnce: true