Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT: DevOps
Browse files Browse the repository at this point in the history
- test direct use of secrets
Aternus committed Jun 8, 2024
1 parent d5ecc64 commit 566fe22
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/shared-test.yml
Original file line number Diff line number Diff line change
@@ -15,14 +15,16 @@ on:
type: string
required: true
description: "JSON array of PHP extensions"
secrets:
geonames-username:
required: true
use-secure-environment:
type: boolean
required: false
default: false
description: "Whether to use the secure environment"

jobs:
test:
env:
GEONAMES_USERNAME: ${{ secrets.geonames-username }}
GEONAMES_USERNAME: ${{ secrets.GEONAMES_USERNAME }}
strategy:
matrix:
os: ${{ fromJson(inputs.operating-systems) }}
3 changes: 1 addition & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -44,5 +44,4 @@ jobs:
operating-systems: '["ubuntu-latest", "macos-latest", "windows-latest"]'
php-versions: ${{ needs.get-php-info.outputs.versions }}
php-extensions: ${{ needs.get-php-info.outputs.extensions }}
secrets:
geonames-username: ${{ secrets.GEONAMES_USERNAME }}
use-secure-environment: ${{ github.event.pull_request.head.repo.full_name != github.repository }}

0 comments on commit 566fe22

Please sign in to comment.