Only complain for automation driven builds

This commit is contained in:
Max Howell 2023-12-29 11:34:42 +00:00
parent 46540dc500
commit 961a4f65e7
3 changed files with 9 additions and 1 deletions

View file

@ -37,4 +37,5 @@ jobs:
issues: write
with:
pkg: ${{ matrix.pkg }}
complain: ${{ github.event_name == 'workflow_call' }}
secrets: inherit

View file

@ -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

View file

@ -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