Skip to content

Commit 5d9c756

Browse files
Update release.yml hotfix (#957)
1 parent c4306bd commit 5d9c756

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ jobs:
3131
id: package
3232
run: |
3333
echo "name=$(python - <<'PY'
34-
import sys
35-
with open('pyproject.toml', 'r', encoding='utf-8') as f:
36-
for line in f:
37-
s = line.strip()
38-
if s.startswith('name'):
39-
# supports: name="foo" or name = "foo" and ignores inline comments
40-
val = s.split('=', 1)[1].split('#', 1)[0].strip().strip('"').strip("'")
41-
print(val)
42-
break
43-
PY
44-
)" >> "$GITHUB_OUTPUT"
34+
import sys
35+
with open('pyproject.toml', 'r', encoding='utf-8') as f:
36+
for line in f:
37+
s = line.strip()
38+
if s.startswith('name'):
39+
# supports: name="foo" or name = "foo" and ignores inline comments
40+
val = s.split('=', 1)[1].split('#', 1)[0].strip().strip('"').strip("'")
41+
print(val)
42+
break
43+
PY
44+
)" >> "$GITHUB_OUTPUT"
4545
- name: Configure Poetry
4646
run: |
4747
if [ "${{ steps.package.outputs.name }}" = "polygon-api-client" ]; then

0 commit comments

Comments
 (0)