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: