Skip to content

Commit f567813

Browse files
Update release_python_package_to_pypi.yml
1 parent e50cfe8 commit f567813

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/release_python_package_to_pypi.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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
@@ -57,7 +57,7 @@ jobs:
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

0 commit comments

Comments
 (0)