File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
# This cannot rebase workflow changes into a PR
2
2
# It also only works if the GITHUB_TOKEN has permission to push to the branch
3
3
# see: https://github.com/cirrus-actions/rebase/issues/12#issuecomment-632594995
4
- on :
4
+ on :
5
5
issue_comment :
6
6
types : [created]
7
7
name : Automatic Rebase
15
15
uses : actions/checkout@v2
16
16
with :
17
17
fetch-depth : 0
18
+ - name : Post rebase started comment to pull request
19
+ uses : actions/github-script@v3
20
+ with :
21
+ script : |
22
+ const backport_start_body = `Started rebase: https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${process.env.GITHUB_RUN_ID}`;
23
+ await github.issues.createComment({
24
+ issue_number: context.issue.number,
25
+ owner: context.repo.owner,
26
+ repo: context.repo.repo,
27
+ body: backport_start_body
28
+ });
18
29
- name : Automatic Rebase
19
30
uses : cirrus-actions/rebase@1.6
20
31
env :
You can’t perform that action at this time.
0 commit comments