Skip to content

Commit

Permalink
chore: fix version extracted from tag
Browse files Browse the repository at this point in the history
  • Loading branch information
gdulafactset authored Jun 21, 2024
1 parent 331cef5 commit a5384d6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ jobs:
run: |
count=0
max_retries=5
tag=${{ github.event.release.tag_name }}
version=${tag#v}
while [ $count -lt $max_retries ]; do
if pip install fds.sdk.utils==${{ github.event.release.tag_name }} --dry-run &>/dev/null; then
echo "Version ${{ github.event.release.tag_name }} of fds.sdk.utils is available on PyPI."
if pip install fds.sdk.utils==${version} --dry-run &>/dev/null; then
echo "Version ${version} of fds.sdk.utils is available on PyPI."
conda install grayskull conda-build anaconda-client
conda info
Expand All @@ -59,7 +61,7 @@ jobs:
anaconda --version
# Create meta.yaml recipe for the package pulled from PyPi
grayskull pypi fds.sdk.utils==${{ github.event.release.tag_name }}
grayskull pypi fds.sdk.utils==${version}
# Modify the meta.yaml recipe-maintainers property to include all maintainers of this repo
sed -i "/recipe-maintainers:/,/extra:/ s/- .*/- gdulafactset/" fds.sdk.utils/meta.yaml
Expand Down

0 comments on commit a5384d6

Please sign in to comment.