diff --git a/.github/workflows/comment.yml b/.github/workflows/comment.yml new file mode 100644 index 000000000..9ac3b49d6 --- /dev/null +++ b/.github/workflows/comment.yml @@ -0,0 +1,10 @@ +name: Re–Run Tests on PR Comment Workflow + +on: + issue_comment: + types: [created] + +jobs: + rerun-tests-job: + if: github.event.issue.pull_request && github.event.comment.body == '/retest' + uses: ./.github/workflows/main.yml diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml deleted file mode 100644 index fd2def487..000000000 --- a/.github/workflows/pr-comment.yml +++ /dev/null @@ -1,9 +0,0 @@ -name: Re-Run Tests on PR Comment Workflow -on: - issue_comment: - types: [created] - -jobs: - rerun-tests-job: - if: github.event.issue.pull_request && contains(github.event.comment.body, 'run tests') # if comment is created on a PR, can also use the syntax if: contains(github.event.comment.html_url, '/pull/') - uses: ./.github/workflows/main.yml \ No newline at end of file