From d7a53c8fc0f9aae94017bd5132f69aa9f9222542 Mon Sep 17 00:00:00 2001 From: Tommy Gatti Date: Wed, 16 Oct 2024 09:20:42 +1100 Subject: [PATCH] Add in job to handle `!test` comment commands --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f2c207..b8da886 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ on: - config/** - .* - README.md - # For config-pr-2-confirm.yml + # For config-pr-2-confirm.yml and '!test' comment commands issue_comment: types: - created @@ -51,6 +51,15 @@ jobs: contents: write # For updating metadata.yaml version and committing checksums pull-requests: write # For commenting on PR + pr-comment-test: + name: !test + if: github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '!test') + uses: access-nri/model-config-tests/.github/workflows/config-comment-test.yml@main + secrets: inherit + permissions: + contents: write # for committing the result of the repro test + pull-requests: write # for writing comments on pull requests + ################# # Bump Tag jobs # #################