From 961a4f65e7a118dc5c3c2c960a9841a8afda391b Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 29 Dec 2023 11:34:42 +0000 Subject: [PATCH] Only complain for automation driven builds --- .github/workflows/new-version.yml | 1 + .github/workflows/pkg-platform.yml | 5 ++++- .github/workflows/pkg.yml | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/new-version.yml b/.github/workflows/new-version.yml index 10209f9b..05c97a86 100644 --- a/.github/workflows/new-version.yml +++ b/.github/workflows/new-version.yml @@ -37,4 +37,5 @@ jobs: issues: write with: pkg: ${{ matrix.pkg }} + complain: ${{ github.event_name == 'workflow_call' }} secrets: inherit diff --git a/.github/workflows/pkg-platform.yml b/.github/workflows/pkg-platform.yml index 3079a33a..35278c6f 100644 --- a/.github/workflows/pkg-platform.yml +++ b/.github/workflows/pkg-platform.yml @@ -34,6 +34,9 @@ on: Indeed! You cannot leave this as `null` or undefined. Sorry, GHA is not flexible enough to efficiently work around this. type: string + complain: + type: boolean + default: false secrets: APPLE_CERTIFICATE_P12: { required: false } APPLE_CERTIFICATE_P12_PASSWORD: { required: false } @@ -223,7 +226,7 @@ jobs: complain: needs: bottle - if: failure() && !inputs.dry-run + if: failure() && !inputs.dry-run && inputs.complain runs-on: ubuntu-latest permissions: issues: write diff --git a/.github/workflows/pkg.yml b/.github/workflows/pkg.yml index f23425b0..bacd4bde 100644 --- a/.github/workflows/pkg.yml +++ b/.github/workflows/pkg.yml @@ -10,6 +10,9 @@ on: dry-run: type: boolean default: false + complain: + type: boolean + default: false jobs: plan: @@ -46,4 +49,5 @@ jobs: test-container: ${{ toJSON(matrix.platform.test-container) }} dry-run: ${{ inputs.dry-run }} tinyname: ${{ matrix.platform.tinyname }} + complain: ${{ inputs.complain }} secrets: inherit