Skip to content

Commit 611fcc7

Browse files
Refactor action.yml to streamline test path retrieval by executing main.ps1 directly
1 parent 3685052 commit 611fcc7

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

action.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,15 @@ runs:
8989
uses: PSModule/Install-PSModuleHelpers@v1
9090

9191
- name: Get test paths
92-
uses: PSModule/Github-Script@v1
92+
shell: pwsh
9393
id: paths
9494
env:
9595
PSMODULE_TEST_PSMODULE_INPUT_Name: ${{ inputs.Name }}
9696
PSMODULE_TEST_PSMODULE_INPUT_Settings: ${{ inputs.Settings }}
9797
PSMODULE_TEST_PSMODULE_INPUT_WorkingDirectory: ${{ inputs.WorkingDirectory }}
98-
with:
99-
Debug: ${{ inputs.Debug }}
100-
Prerelease: ${{ inputs.Prerelease }}
101-
Verbose: ${{ inputs.Verbose }}
102-
Version: ${{ inputs.Version }}
103-
WorkingDirectory: ${{ inputs.WorkingDirectory }}
104-
Script: ${{ github.action_path }}/scripts/main.ps1
98+
run: |
99+
# Get test paths
100+
${{ github.action_path }}/scripts/main.ps1
105101
106102
- name: Invoke-Pester
107103
uses: PSModule/Invoke-Pester@v4

0 commit comments

Comments
 (0)