We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c4c396 commit 6235781Copy full SHA for 6235781
.github/workflows/automatic-rebase.yaml
@@ -0,0 +1,29 @@
1
+name: automatic-rebase
2
+
3
+on:
4
+ issue_comment:
5
+ types:
6
+ - created
7
8
+jobs:
9
+ automatic-rebase:
10
+ if: ${{ github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase') }}
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Generate token
14
+ id: generate-token
15
+ uses: tibdex/github-app-token@v1
16
+ with:
17
+ app_id: ${{ secrets.APP_ID }}
18
+ private_key: ${{ secrets.PRIVATE_KEY }}
19
20
+ - name: Check out repository
21
+ uses: actions/checkout@v2
22
23
+ token: ${{ steps.generate-token.outputs.token }}
24
+ fetch-depth: 0
25
26
+ - name: Automatic rebase
27
+ uses: cirrus-actions/[email protected]
28
+ env:
29
+ GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
0 commit comments