Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Revert "Revert "feat: add a notice to cancel the workflow"" #8

Merged
merged 2 commits into from
Sep 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 7 additions & 17 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,6 @@ runs:

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}}
Expand All @@ -48,6 +31,13 @@ runs:

Please post a comment to any this repository's issue or pull request.

EOS
env:
CODE_BLOCK: "```"
- shell: bash
run: |
cat << EOS >> "$GITHUB_STEP_SUMMARY"

Rerun the workflow.

$CODE_BLOCK
Expand Down