-
Notifications
You must be signed in to change notification settings - Fork 150
36 lines (36 loc) · 1.18 KB
/
automatic_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
33
34
35
36
#####################################################################################
# Github Action to rebase pull request.
#
# Workflow starts when pr comment created or edited
#
# Job will not work if:
# 1. Patch branch name is 'master'
# 2. There was an updates in github actions in target branch (restriction by github)
#####################################################################################
on:
issue_comment:
types: [created, edited]
name: Automatic Rebase
jobs:
rebase:
name: Rebase PR
if: github.event.issue.pull_request != '' && github.event.comment.body == 'GitHub, rebase'
runs-on: ubuntu-latest
steps:
- uses: khan/pull-request-comment-trigger@master
name: React with rocket on run
with:
trigger: ','
reaction: rocket
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- run: 'echo We print it here for this action to work'
if: 'true'
- name: Checkout the latest code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Automatic Rebase
uses: cirrus-actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}