File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed
Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change 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 :
You canāt perform that action at this time.
0 commit comments