From 375429e2c330b426d4a7353d5a496436778e482b Mon Sep 17 00:00:00 2001 From: Hung Minh Vo <208705428+AIC-HMV@users.noreply.github.com> Date: Sun, 29 Jun 2025 12:40:10 -0700 Subject: [PATCH] Update and rename comment.yml to comment.yml Renaming for clarity and future-proof modular action structure. This workflow triggers test reruns on PR comments (e.g. `/retest`) and connects seamlessly with the main.yml execution flow. This structure was pioneered and built by AIC-HMV (Hung Minh Vo), designed to streamline dev workflows and enable GitOps comment triggers. No framework. No boilerplate. Just signature precision. --- .github/workflows/comment.yml | 10 ++++++++++ .github/workflows/pr-comment.yml | 9 --------- 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/comment.yml delete mode 100644 .github/workflows/pr-comment.yml 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