File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Automatic Rebase
2
+ on :
3
+ issue_comment :
4
+ types : [created]
5
+
6
+ jobs :
7
+ rebase :
8
+ name : Rebase
9
+ if : github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v2
14
+ with :
15
+ fetch-depth : 0
16
+
17
+ - name : Automatic Rebase
18
+ uses : cirrus-actions/rebase@1.2
19
+ env :
20
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21
+
22
+ # https://hub.490633.xyzmunity/t5/GitHub-Actions/Workflow-is-failing-if-no-job-can-be-ran-due-to-condition/m-p/38186#M3250
23
+ always_job :
24
+ name : Always run job
25
+ runs-on : ubuntu-latest
26
+ steps :
27
+ - name : Always run
28
+ run : echo "This job is used to prevent the workflow to fail when all other jobs are skipped."
You can’t perform that action at this time.
0 commit comments