Skip to content

Commit 4589375

Browse files
committed
Add rebase workflow
1 parent ba1b9be commit 4589375

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/rebase.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: rebase
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
rebase:
9+
name: Rebase
10+
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@master
14+
with:
15+
fetch-depth: 0
16+
- name: Automatic Rebase
17+
uses: cirrus-actions/[email protected]
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
# https://github.community/t5/GitHub-Actions/Workflow-is-failing-if-no-job-can-be-ran-due-to-condition/m-p/38186#M3250
21+
always_job:
22+
name: Always run job
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Always run
26+
run: echo "This job is used to prevent the workflow to fail when all other jobs are skipped."

0 commit comments

Comments
 (0)