File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ jobs:
3232 run : |
3333 $ErrorActionPreference = "Stop"
3434
35- try {
36- git clone -b "$env:BRANCH_NAME" --single-branch https://github.com/PycraftDeveloper/PMMA.git build_cache
37- Write-Host "Cache branch exists, cloned successfully ."
38- } catch {
35+ git clone -b "$env:BRANCH_NAME" --single-branch https://github.com/PycraftDeveloper/PMMA.git build_cache
36+ if ($LASTEXITCODE -ne 0) {
37+ Write-Host "Cache branch missing, creating.. ."
38+ } else {
3939 Write-Host "Cache branch missing, creating..."
4040 git checkout --orphan $env:BRANCH_NAME
4141 git lfs install
5757 git clone -b $env:BRANCH_NAME --single-branch https://github.com/PycraftDeveloper/PMMA.git build_cache
5858 }
5959
60- python "build_tools/build_deps.py" -in_github_workflow -github_token
60+ python "build_tools/build_deps.py" -in_github_workflow
6161
6262 cd build_cache
6363
@@ -125,10 +125,10 @@ jobs:
125125 git clone https://github.com/${{ github.repository }} /PMMA
126126 cd /PMMA
127127 git lfs install
128- git clone -b $env: BRANCH_NAME --single-branch https://github.com/PycraftDeveloper/PMMA.git build_cache
128+ git clone -b "$ BRANCH_NAME" --single-branch https://github.com/PycraftDeveloper/PMMA.git build_cache
129129 fi
130130
131- python3 "build_tools/build_deps.py" -in_github_workflow -github_token
131+ python3 "build_tools/build_deps.py" -in_github_workflow
132132
133133 cd build_cache
134134
You can’t perform that action at this time.
0 commit comments