From 47e88e4c75c46fc1bb234590f8686202f7e6cc26 Mon Sep 17 00:00:00 2001 From: Massimiliano Date: Wed, 11 Sep 2024 12:47:25 +0200 Subject: [PATCH] Empty implementation of the comment action (infra) (#1465) test --- .github/workflows/dispatch_lab_job.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/dispatch_lab_job.yaml diff --git a/.github/workflows/dispatch_lab_job.yaml b/.github/workflows/dispatch_lab_job.yaml new file mode 100644 index 000000000..7b122b475 --- /dev/null +++ b/.github/workflows/dispatch_lab_job.yaml @@ -0,0 +1,14 @@ +name: Run Workflow on PR Comment +on: + issue_comment: + types: [created] + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: Dispatch test in the lab and monitor it + if: ${{ contains(github.event.comment.body, '/lab') && github.event.issue.pull_request && github.event.issue.author_association == "MEMBER" }} + run: + COMMENT_BODY="${{ github.event.comment.body }}" + echo $COMMENT_BODY