File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change 2020 - name : Checkout repository
2121 uses : actions/checkout@v4
2222
23- - name : Monitor _temp folder and copy setup.ps1
24- shell : powershell
25- run : |
26- $debugFolder = "C:\GitHubActionsRunner\debug"
27- if (!(Test-Path -Path $debugFolder)) {
28- New-Item -ItemType Directory -Path $debugFolder
29- }
30-
31- Start-Job -ScriptBlock {
32- $tempFolder = "C:\GitHubActionsRunner\_work\_temp"
33- $debugFolder = "C:\GitHubActionsRunner\debug"
34- $fileCopied = $false
35-
36- while (-not $fileCopied) {
37- $setupFile = Get-ChildItem -Path $tempFolder -Recurse -Filter "setup.ps1" -ErrorAction SilentlyContinue | Select-Object -First 1
38-
39- if ($setupFile) {
40- Copy-Item -Path $setupFile.FullName -Destination $debugFolder -Force
41- Write-Output "setup.ps1 copied to debug folder: $($setupFile.FullName)"
42- $fileCopied = $true
43- }
44- Start-Sleep -Seconds 1
45- }
46- }
47-
4823 - name : Install Python
4924 uses : actions/setup-python@v5
5025 with :
You can’t perform that action at this time.
0 commit comments