From 4d627318af671a4036c854a9a249ff27a97d7f94 Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Thu, 27 Jul 2023 10:06:36 +0200 Subject: [PATCH] More tweaks for the try GitHub Action (#30029) - Don't trigger try jobs when comments are deleted or edited. - Don't report success for cancelled jobs. --- .github/workflows/try.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/try.yml b/.github/workflows/try.yml index 0275a154049..cce1192107d 100644 --- a/.github/workflows/try.yml +++ b/.github/workflows/try.yml @@ -1,6 +1,9 @@ -on: issue_comment name: Try +on: + issue_comment: + types: [created] + jobs: parse-comment: name: Process Comment @@ -87,7 +90,7 @@ jobs: if: ${{ always() && fromJson(needs.parse-comment.outputs.configuration).try}} steps: - name: Success - if: ${{ !contains(join(needs.*.result, ','), 'failure') }} + if: ${{ !contains(join(needs.*.result, ','), 'failure') && !contains(join(needs.*.result, ','), 'cancelled') }} uses: actions/github-script@v6 with: script: |