Skip to content

Commit afff89b

Browse files
committed
Refactor PowerShell script calls in action YAML files for improved readability
1 parent f688c7d commit afff89b

2 files changed

Lines changed: 7 additions & 16 deletions

File tree

‎.github/actions/templates/pol-int-test-detect-test-cases/action.yml‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ runs:
3838
shell: pwsh
3939
run: |
4040
${{ github.workspace }}/scripts/pipelines/policy-integration-tests/pipeline-map-policy-integration-test-cases.ps1 `
41-
-testConfigFilePath "${TestConfigFilePath}" `
42-
-targetGitBranch "${TargetGitBranch}" `
43-
-testCaseDir "${TestCaseDir}"
44-
env:
45-
TestConfigFilePath: ${{ inputs.test-config-file-path }}
46-
TargetGitBranch: ${{ inputs.target-git-branch }}
47-
TestCaseDir: ${{ inputs.test-case-dir }}
41+
-testConfigFilePath "${{ inputs.test-config-file-path }}" `
42+
-targetGitBranch "${{ inputs.target-git-branch }}" `
43+
-testCaseDir "${{ inputs.test-case-dir }}"

‎.github/actions/templates/pol-int-test-get-sub-dir/action.yml‎

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@ runs:
3939
shell: pwsh
4040
run: |
4141
${{ github.workspace }}/scripts/pipelines/policy-integration-tests/pipeline-get-sub-directories.ps1 `
42-
-directory "${Directory }" `
43-
-ignoreFileName "${IgnoreFileName}" `
44-
-includedDirectory "${IncludedDirectory}" `
45-
-skip "${Skip}"
46-
env:
47-
Directory: ${{ inputs.directory }}
48-
IgnoreFileName: ${{ inputs.ignore-file-name }}
49-
IncludedDirectory: ${{ inputs.included-directory }}
50-
Skip: ${{ inputs.skip }}
42+
-directory "${{ inputs.directory }}" `
43+
-ignoreFileName "${{ inputs.ignore-file-name }}" `
44+
-includedDirectory "${{ inputs.included-directory }}" `
45+
-skip "${{ inputs.skip }}"

0 commit comments

Comments
 (0)