Skip to content

Commit abca74f

Browse files
authored
Create rebase.yml
1 parent 72c1133 commit abca74f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/rebase.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
- uses: actions/checkout@master
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Automatic Rebase
17+
uses: cirrus-actions/rebase@1.2
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
21+
# https://github.community/t5/GitHub-Actions/Workflow-is-failing-if-no-job-can-be-ran-due-to-condition/m-p/38186#M3250
22+
always_job:
23+
name: Always run job
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Always run
27+
run: echo "This job is used to prevent the workflow to fail when all other jobs are skipped."

0 commit comments

Comments
 (0)