From: Soeren Apel Date: Thu, 22 Aug 2024 21:34:45 +0000 (+0200) Subject: build.yml: Fix comment X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5df4311d06f5e0e7e4d8407829348fb3d22d1337;p=sigrok-cli.git build.yml: Fix comment --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d8d7733..c499750 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,8 +50,9 @@ jobs: update-pending-status-success: name: Update pending status as 'success' needs: call-build-workflow + # Note: always() is a workaround, see https://github.com/actions/runner/issues/491#issuecomment-850884422 if: | - always() && # Workaround, see https://github.com/actions/runner/issues/491#issuecomment-850884422 + always() && (github.event_name == 'pull_request') && (!contains(needs.*.result, 'cancelled')) && (!contains(needs.*.result, 'failure')) @@ -89,8 +90,9 @@ jobs: update-pending-status-failure: name: Update pending status as 'failure' needs: call-build-workflow + # Note: always() is a workaround, see https://github.com/actions/runner/issues/491#issuecomment-850884422 if: | - always() && # Workaround, see https://github.com/actions/runner/issues/491#issuecomment-850884422 + always() && (github.event_name == 'pull_request') && (contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'failure')) runs-on: ubuntu-latest