This repository has been archived by the owner on Nov 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
70 lines (53 loc) · 1.53 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: gha-trigger step summary
description: gha-trigger step summary
inputs:
data:
description: gha-trigger's workflow dispatch input
required: true
runs:
using: composite
steps:
- shell: bash
if: fromJSON(inputs.data).event.pull_request.html_url
run: |
cat << EOS >> "$GITHUB_STEP_SUMMARY"
[Pull Request]($PR_URL)
## How to rerun or cancel the Workflow and jobs
Please post a comment to the [Pull Request]($PR_URL).
Rerun the workflow.
$CODE_BLOCK
/rerun-workflow $GITHUB_RUN_ID
$CODE_BLOCK
Rerun failed jobs.
$CODE_BLOCK
/rerun-failed-job $GITHUB_RUN_ID
$CODE_BLOCK
Cancel the workflow.
$CODE_BLOCK
/cancel $GITHUB_RUN_ID
$CODE_BLOCK
EOS
env:
PR_URL: ${{fromJSON(inputs.data).event.pull_request.html_url}}
CODE_BLOCK: "```"
- shell: bash
if: "! fromJSON(inputs.data).event.pull_request.html_url"
run: |
cat << EOS >> "$GITHUB_STEP_SUMMARY"
## How to rerun or cancel the Workflow and jobs
Please post a comment to any this repository's issue or pull request.
Rerun the workflow.
$CODE_BLOCK
/rerun-workflow $GITHUB_RUN_ID
$CODE_BLOCK
Rerun failed jobs.
$CODE_BLOCK
/rerun-failed-job $GITHUB_RUN_ID
$CODE_BLOCK
Cancel the workflow.
$CODE_BLOCK
/cancel $GITHUB_RUN_ID
$CODE_BLOCK
EOS
env:
CODE_BLOCK: "```"