Skip to content

Commit 88c3b68

Browse files
🩹 [CI]: Remove unnecessary initialization and GitHub module reinstallation steps in Build-Docs workflow
1 parent 47d300c commit 88c3b68

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

ā€Ž.github/workflows/Build-Docs.ymlā€Ž

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,6 @@ jobs:
4646
with:
4747
fetch-depth: 0
4848

49-
- name: Initialize environment
50-
uses: PSModule/Initialize-PSModule@v1
51-
with:
52-
Debug: ${{ inputs.Debug }}
53-
Prerelease: ${{ inputs.Prerelease }}
54-
Verbose: ${{ inputs.Verbose }}
55-
Version: ${{ inputs.Version }}
56-
WorkingDirectory: ${{ inputs.WorkingDirectory }}
57-
5849
- name: Download module artifact
5950
uses: actions/download-artifact@v4
6051
with:
@@ -123,30 +114,6 @@ jobs:
123114
pip install mkdocs-git-revision-date-localized-plugin
124115
pip install mkdocs-git-committers-plugin-2
125116
126-
- name: Reinstall GitHub module
127-
shell: pwsh
128-
run: |
129-
'GitHub' | ForEach-Object {
130-
$name = $_
131-
Write-Output "Installing module: $name"
132-
$retryCount = 5
133-
$retryDelay = 10
134-
for ($i = 0; $i -lt $retryCount; $i++) {
135-
try {
136-
Install-PSResource -Name $name -WarningAction SilentlyContinue -TrustRepository -Repository PSGallery -Reinstall
137-
break
138-
} catch {
139-
Write-Warning "Installation of $name failed with error: $_"
140-
if ($i -eq $retryCount - 1) {
141-
throw
142-
}
143-
Write-Warning "Retrying in $retryDelay seconds..."
144-
Start-Sleep -Seconds $retryDelay
145-
}
146-
}
147-
Import-Module -Name $name
148-
}
149-
150117
- name: Structure site
151118
uses: PSModule/GitHub-Script@v1
152119
with:

0 commit comments

Comments
Ā (0)