From d781a080141188587c1eb78c3029457961836ac9 Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 15:07:24 +0100 Subject: [PATCH] [v11.0.x] ci: Stop running ephemeral instances workflow when not needed (#86329) ci: Stop running ephemeral instances workflow when not needed (#85306) Signed-off-by: Dave Henderson (cherry picked from commit 08d603e660621cc01dc63b69edcb7141cb63e30f) Co-authored-by: Dave Henderson --- .github/workflows/ephemeral-instances-pr-comment.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ephemeral-instances-pr-comment.yml b/.github/workflows/ephemeral-instances-pr-comment.yml index 057d56dd247..c95ad9ba841 100644 --- a/.github/workflows/ephemeral-instances-pr-comment.yml +++ b/.github/workflows/ephemeral-instances-pr-comment.yml @@ -4,7 +4,11 @@ on: types: [created] jobs: config: - runs-on: "ubuntu-latest" + if: github.event.sender.type == 'User' && + github.event.issue.pull_request && + startsWith(github.event.comment.body, '/deploy-to-hg') + runs-on: + labels: ubuntu-latest-8-cores outputs: has-secrets: ${{ steps.check.outputs.has-secrets }} steps: