Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions .github/workflows/Process-PSModule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ jobs:
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@ea19a3eb1293246d1b00e4faae1544442c3be0ec # v6.1.1
secrets:
APIKEY: ${{ secrets.APIKEY }}
# Showcase: send data down to the module tests (see tests/Environment.Tests.ps1).
# TestData is a single-line JSON object with optional "secrets" (masked in logs) and
# "variables" (not masked) maps. Every entry is exposed to the module test jobs as
# $env:<name>. Reference a repository secret with the direct "${{ secrets.NAME }}"
# form (single-line values, no quotes or backslashes) and a repository variable with
# ${{ toJSON(vars.NAME) }} so any characters are encoded safely. The folded ">-" scalar
# keeps the whole value on one line so GitHub registers a single log mask. Omit
# TestData entirely when your tests need no data.
TestData: >-
{ "secrets": { "TEST_SECRET": "${{ secrets.TEST_SECRET }}" },
"variables": { "TEST_VARIABLE": ${{ toJSON(vars.TEST_VARIABLE) }} } }
{
"secrets": {
"TEST_SECRET": "${{ secrets.TEST_SECRET }}"
},
"variables": {
"TEST_VARIABLE": "${{ vars.TEST_VARIABLE }}"
}
}
Loading