Skip to content

Commit 03aa47f

Browse files
🚀[Feature]: Update Invoke-ScriptAnalyzer usage to v4 in Lint and Test workflows
1 parent 7ad44ad commit 03aa47f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

‎.github/workflows/Lint-SourceCode.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,9 @@ jobs:
5353
uses: actions/checkout@v5
5454
with:
5555
persist-credentials: false
56-
fetch-depth: 0
5756

5857
- name: Lint-SourceCode
59-
uses: PSModule/Invoke-ScriptAnalyzer@debugPath #v4
58+
uses: PSModule/Invoke-ScriptAnalyzer@v4
6059
with:
6160
Debug: ${{ inputs.Debug }}
6261
Prerelease: ${{ inputs.Prerelease }}

‎.github/workflows/Test-Module.yml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ jobs:
8484
uses: actions/checkout@v5
8585
with:
8686
persist-credentials: false
87-
fetch-depth: 0
8887

8988
- name: Download module artifact
9089
uses: actions/download-artifact@v5
@@ -107,14 +106,19 @@ jobs:
107106
name: Lint-Module (${{ inputs.RunsOn }})
108107
runs-on: ${{ inputs.RunsOn }}
109108
steps:
109+
- name: Checkout repository
110+
uses: actions/checkout@v5
111+
with:
112+
persist-credentials: false
113+
110114
- name: Download module artifact
111115
uses: actions/download-artifact@v5
112116
with:
113117
name: module
114118
path: ${{ inputs.WorkingDirectory }}/outputs/module
115119

116120
- name: Lint-Module
117-
uses: PSModule/Invoke-ScriptAnalyzer@debugPath #v4
121+
uses: PSModule/Invoke-ScriptAnalyzer@v4
118122
with:
119123
Path: outputs/module
120124
Debug: ${{ inputs.Debug }}

0 commit comments

Comments
 (0)