Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit 81c5bef

Browse files
committed
Include autosquash feature in README installation section
1 parent 65eb94d commit 81c5bef

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,22 @@ on:
1818
jobs:
1919
rebase:
2020
name: Rebase
21-
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
22-
runs-on: ubuntu-latest
21+
if: >-
22+
github.event.issue.pull_request != '' &&
23+
(
24+
contains(github.event.comment.body, '/rebase') ||
25+
contains(github.event.comment.body, '/autosquash')
26+
) runs-on: ubuntu-latest
2327
steps:
2428
- name: Checkout the latest code
2529
uses: actions/checkout@v2
2630
with:
2731
token: ${{ secrets.GITHUB_TOKEN }}
2832
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
2933
- name: Automatic Rebase
30-
uses: cirrus-actions/[email protected]
34+
uses: samholmes/rebase@autosquash
35+
with:
36+
autosquash: ${{ contains(github.event.comment.body, '/autosquash') || contains(github.event.comment.body, '/rebase-autosquash') }}
3137
env:
3238
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3339
```

0 commit comments

Comments
 (0)