Skip to content

Commit

Permalink
fix(ci): clean up release version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Mar 22, 2024
1 parent 8f3ba1a commit 5f3730c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ jobs:
# run littlepay first, so `littlepay -v` doesn't create the config file (which outputs a message)
run: |
pip install -e .
littlepay
output=$(littlepay -v)
version=${output/littlepay /}
version=${version/.0/.}
echo "PYPI_RELEASE_URL=https://test.pypi.org/project/calitp-littlepay/$version" >> "$GITHUB_OUTPUT"
- name: Publish to PyPI
Expand All @@ -74,10 +72,8 @@ jobs:
# run littlepay first, so `littlepay -v` doesn't create the config file (which outputs a message)
run: |
pip install -e .
littlepay
output=$(littlepay -v)
version=${output/littlepay /}
version=${version/.0/.}
echo "PYPI_RELEASE_URL=https://pypi.org/project/calitp-littlepay/$version" >> "$GITHUB_OUTPUT"
- name: Release
Expand Down

0 comments on commit 5f3730c

Please sign in to comment.