Skip to content

Commit 0116e7e

Browse files
ci(audience): use github.event.inputs for selfhosted_only gate (SDK-255)
The previous gate compared inputs.selfhosted_only to the boolean true. GitHub Actions can deliver workflow_dispatch boolean inputs as a string ('true' / 'false') depending on how the dispatch is invoked, in which case "string != boolean" is true and the gate fails open. github.event.inputs.X is always a string regardless of declared type, so comparing to the string 'true' works reliably whether the input is sent as JSON boolean, gh CLI -f (string), or gh CLI -F (raw). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 56d4fb6 commit 0116e7e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/test-audience-sample-app.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ concurrency:
2525

2626
jobs:
2727
playmode:
28-
if: github.event.pull_request.head.repo.fork == false || (github.event_name == 'workflow_dispatch' && inputs.selfhosted_only != true)
28+
if: github.event.pull_request.head.repo.fork == false || (github.event_name == 'workflow_dispatch' && github.event.inputs.selfhosted_only != 'true')
2929
name: ${{ matrix.target }} / ${{ matrix.backend }} / Unity ${{ matrix.unity }}
3030
strategy:
3131
fail-fast: false
@@ -445,7 +445,7 @@ jobs:
445445
# Linux PlayMode runs on GitHub-hosted Ubuntu via GameCI Docker, not on the
446446
# self-hosted matrix above, to keep self-hosted machines free for Win/macOS.
447447
playmode-linux:
448-
if: github.event.pull_request.head.repo.fork == false || (github.event_name == 'workflow_dispatch' && inputs.selfhosted_only != true)
448+
if: github.event.pull_request.head.repo.fork == false || (github.event_name == 'workflow_dispatch' && github.event.inputs.selfhosted_only != 'true')
449449
name: ${{ matrix.target }} / ${{ matrix.backend }} / Unity ${{ matrix.unity }}
450450
runs-on: ubuntu-latest-8-cores
451451
strategy:
@@ -509,7 +509,7 @@ jobs:
509509
# Note: Unity 6 cells use 6000.4.5f1 (the latest patch with a GameCI image);
510510
# 6000.4.0f1 does not have a published GameCI Docker image.
511511
mobile-build:
512-
if: github.event.pull_request.head.repo.fork == false || (github.event_name == 'workflow_dispatch' && inputs.selfhosted_only != true)
512+
if: github.event.pull_request.head.repo.fork == false || (github.event_name == 'workflow_dispatch' && github.event.inputs.selfhosted_only != 'true')
513513
name: ${{ matrix.target }} / IL2CPP / Unity ${{ matrix.unity }}
514514
runs-on: ubuntu-latest-8-cores
515515
strategy:

0 commit comments

Comments
 (0)