Skip to content

Commit 92b9c7a

Browse files
committed
try python (3)
1 parent cddcbdd commit 92b9c7a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,14 @@ jobs:
8888
- name: Update spmgraph dependency version in Package.txt
8989
run: |
9090
file="$GITHUB_WORKSPACE/Sources/SPMGraphConfigSetup/Resources/Package.txt"
91-
new_version="${{ inputs.new_version }}" # Or use ${{ env.NEW_VERSION }} if you set it as an env variable
92-
91+
9392
# Replace the version of spmgraph in the spmgraph config package template
9493
python3 - <<'PY'
9594
import os, re, sys
9695
96+
file="$GITHUB_WORKSPACE/Sources/SPMGraphConfigSetup/Resources/Package.txt"
97+
new_version="${{ inputs.new_version }}" # Or use ${{ env.NEW_VERSION }} if you set it as an env variable
98+
9799
text = open(file, "r", encoding="utf-8").read()
98100
99101
pattern = re.compile(

0 commit comments

Comments
 (0)