From de1106b95a929958ea99fc0d3239bb57973fb51b Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Wed, 15 Mar 2023 09:34:53 +0100 Subject: [PATCH] Allow dispatching the PR comment job for testing (#3535) --- .../{ecosystem-comment.yaml => pr-comment.yaml} | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) rename .github/workflows/{ecosystem-comment.yaml => pr-comment.yaml} (75%) diff --git a/.github/workflows/ecosystem-comment.yaml b/.github/workflows/pr-comment.yaml similarity index 75% rename from .github/workflows/ecosystem-comment.yaml rename to .github/workflows/pr-comment.yaml index b29425614d..c9f652bdd0 100644 --- a/.github/workflows/ecosystem-comment.yaml +++ b/.github/workflows/pr-comment.yaml @@ -1,7 +1,14 @@ +name: PR Check Comment + on: workflow_run: workflows: [CI] types: [completed] + workflow_dispatch: + inputs: + workflow_run_id: + description: The ecosystem workflow that triggers the workflow run + required: true permissions: pull-requests: write @@ -16,7 +23,7 @@ jobs: with: name: ecosystem-result workflow: ci.yaml - run_id: ${{ github.event.workflow_run.id }} + run_id: ${{ github.event.workflow_run.id || github.event.inputs.workflow_run_id }} if_no_artifact_found: ignore - if: steps.download-result.outputs.found_artifact id: result