Skip to content

Commit 034cde3

Browse files
Liora Milbaumnejch
Liora Milbaum
authored andcommitted
feat(ci): Re-Run Tests on PR Comment workflow
1 parent c3600b4 commit 034cde3

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/rerun-test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 'Rerun failed workflows'
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
rerun_pr_tests:
9+
name: rerun_pr_tests
10+
if: ${{ github.event.issue.pull_request }}
11+
runs-on: ubuntu-20.04
12+
steps:
13+
- uses: estroz/rerun-actions@main
14+
with:
15+
repo_token: ${{ secrets.GITHUB_TOKEN }}
16+
comment_id: ${{ github.event.comment.id }}

CONTRIBUTING.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ message guidelines described below:
2424
2525
Please provide your patches as GitHub pull requests. Thanks!
2626

27+
Rerunning failed CI workflows
28+
-----------------------------
29+
30+
* Ask the maintainers to add the ``ok-to-test`` label on the PR
31+
* Post a comment in the PR
32+
``/rerun-all`` - rerun all failed workflows
33+
34+
``/rerun-workflow <workflow name>`` - rerun a specific failed workflow
35+
36+
The functionality is provided by ``rerun-action <https://github.com/marketplace/actions/rerun-actions>``
37+
2738
Commit message guidelines
2839
-------------------------
2940

0 commit comments

Comments
 (0)