Skip to content

Commit 5535959

Browse files
🩹 [Patch]: Refactor TestData JSON formatting in Process-PSModule.yml for improved readability
1 parent 6a2826f commit 5535959

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

‎.github/workflows/Process-PSModule.yml‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,12 @@ jobs:
3030
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@ea19a3eb1293246d1b00e4faae1544442c3be0ec # v6.1.1
3131
secrets:
3232
APIKEY: ${{ secrets.APIKEY }}
33-
# Showcase: send data down to the module tests (see tests/Environment.Tests.ps1).
34-
# TestData is a single-line JSON object with optional "secrets" (masked in logs) and
35-
# "variables" (not masked) maps. Every entry is exposed to the module test jobs as
36-
# $env:<name>. Reference a repository secret with the direct "${{ secrets.NAME }}"
37-
# form (single-line values, no quotes or backslashes) and a repository variable with
38-
# ${{ toJSON(vars.NAME) }} so any characters are encoded safely. The folded ">-" scalar
39-
# keeps the whole value on one line so GitHub registers a single log mask. Omit
40-
# TestData entirely when your tests need no data.
4133
TestData: >-
42-
{ "secrets": { "TEST_SECRET": "${{ secrets.TEST_SECRET }}" },
43-
"variables": { "TEST_VARIABLE": ${{ toJSON(vars.TEST_VARIABLE) }} } }
34+
{
35+
"secrets": {
36+
"TEST_SECRET": "${{ secrets.TEST_SECRET }}"
37+
},
38+
"variables": {
39+
"TEST_VARIABLE": "${{ vars.TEST_VARIABLE }}"
40+
}
41+
}

0 commit comments

Comments
 (0)