Skip to content

Commit 7f83db3

Browse files
aquarionclaude
andcommitted
🔄️ Make environment input optional to avoid spurious deployments
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6a69c8f commit 7f83db3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎.github/workflows/laravel-tests.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@ on:
1919
test_command:
2020
type: string
2121
default: "vendor/bin/phpunit"
22+
environment:
23+
description: "GitHub environment name for environment-scoped variables/secrets. Leave empty to avoid registering a deployment."
24+
type: string
25+
default: ""
2226

2327
jobs:
2428
laravel-tests:
2529
runs-on: ubuntu-latest
26-
environment: Testing
30+
environment: ${{ inputs.environment != '' && inputs.environment || null }}
2731
strategy:
2832
matrix:
2933
php-version: ${{ inputs.php_versions != '' && fromJson(inputs.php_versions) || fromJson(format('["{0}"]', inputs.php_version)) }}

0 commit comments

Comments
 (0)