Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ jobs:
id: package
run: |
echo "name=$(python - <<'PY'
import sys
with open('pyproject.toml', 'r', encoding='utf-8') as f:
for line in f:
s = line.strip()
if s.startswith('name'):
# supports: name="foo" or name = "foo" and ignores inline comments
val = s.split('=', 1)[1].split('#', 1)[0].strip().strip('"').strip("'")
print(val)
break
PY
)" >> "$GITHUB_OUTPUT"
import sys
with open('pyproject.toml', 'r', encoding='utf-8') as f:
for line in f:
s = line.strip()
if s.startswith('name'):
# supports: name="foo" or name = "foo" and ignores inline comments
val = s.split('=', 1)[1].split('#', 1)[0].strip().strip('"').strip("'")
print(val)
break
PY
)" >> "$GITHUB_OUTPUT"
- name: Configure Poetry
run: |
if [ "${{ steps.package.outputs.name }}" = "polygon-api-client" ]; then
Expand Down