Skip to content

Commit 19f57e0

Browse files
🩹 [CI]: Move environment variable definitions to the job level in Test-ModuleLocal workflow
1 parent 75fe368 commit 19f57e0

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

‎.github/workflows/Test-ModuleLocal.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,6 @@ on:
7878
required: false
7979
default: '.'
8080

81-
env:
82-
TEST_APP_ENT_CLIENT_ID: ${{ secrets.TEST_APP_ENT_CLIENT_ID }}
83-
TEST_APP_ENT_PRIVATE_KEY: ${{ secrets.TEST_APP_ENT_PRIVATE_KEY }}
84-
TEST_APP_ORG_CLIENT_ID: ${{ secrets.TEST_APP_ORG_CLIENT_ID }}
85-
TEST_APP_ORG_PRIVATE_KEY: ${{ secrets.TEST_APP_ORG_PRIVATE_KEY }}
86-
TEST_USER_ORG_FG_PAT: ${{ secrets.TEST_USER_ORG_FG_PAT }}
87-
TEST_USER_USER_FG_PAT: ${{ secrets.TEST_USER_USER_FG_PAT }}
88-
TEST_USER_PAT: ${{ secrets.TEST_USER_PAT }}
89-
9081
permissions:
9182
contents: read # to checkout the repo and create releases on the repo
9283

@@ -121,6 +112,14 @@ jobs:
121112
- name: Test-ModuleLocal
122113
uses: PSModule/Invoke-Pester@v3
123114
continue-on-error: true
115+
env:
116+
TEST_APP_ENT_CLIENT_ID: ${{ secrets.TEST_APP_ENT_CLIENT_ID }}
117+
TEST_APP_ENT_PRIVATE_KEY: ${{ secrets.TEST_APP_ENT_PRIVATE_KEY }}
118+
TEST_APP_ORG_CLIENT_ID: ${{ secrets.TEST_APP_ORG_CLIENT_ID }}
119+
TEST_APP_ORG_PRIVATE_KEY: ${{ secrets.TEST_APP_ORG_PRIVATE_KEY }}
120+
TEST_USER_ORG_FG_PAT: ${{ secrets.TEST_USER_ORG_FG_PAT }}
121+
TEST_USER_USER_FG_PAT: ${{ secrets.TEST_USER_USER_FG_PAT }}
122+
TEST_USER_PAT: ${{ secrets.TEST_USER_PAT }}
124123
with:
125124
Debug: ${{ inputs.Debug }}
126125
Prerelease: ${{ inputs.Prerelease }}

0 commit comments

Comments
 (0)