Skip to content

Commit

Permalink
Lose counter from release workflow loop
Browse files Browse the repository at this point in the history
Workflow was failing on incrementing counter.
  • Loading branch information
maread99 committed Jun 25, 2024
1 parent ab04d4c commit 7b093a5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ jobs:
shell: bash
run: |
sleep 5
i=0
while [ $i -lt 12 ] && [ "${{ github.ref_name }}" != $(pip index versions -i https://test.pypi.org/simple --pre market-analy | cut -d'(' -f2 | cut -d')' -f1 | sed 1q) ];\
do echo "waiting for package to appear in test index, i is $i"; echo "sleeping 5s"; sleep 5s; echo "woken up"; let i++; echo "next i is $i"; done
while [ "${{ github.ref_name }}" != $(pip index versions -i https://test.pypi.org/simple --pre market-analy | cut -d'(' -f2 | cut -d')' -f1 | sed 1q) ];\
do echo "waiting for package to appear in test index, sleeping 5s"; sleep 5s; echo "woken up"; done
pip install --index-url https://test.pypi.org/simple market-analy==${{ github.ref_name }} --no-deps
pip install -r etc/requirements.txt
python -c 'import market_analy;print(market_analy.__version__)'
Expand All @@ -60,8 +59,7 @@ jobs:
shell: bash
run: |
sleep 5
i=0
while [ $i - lt 12 ] && [ "${{ github.ref_name }}" != $(pip index versions -i https://pypi.org/simple --pre market-analy | cut -d'(' -f2 | cut -d')' -f1 | sed 1q) ];\
do echo "waiting for package to appear in index, i is $i"; echo "sleeping 5s"; sleep 5s; echo "woken up"; let i++; echo "next i is $i"; done
while [ "${{ github.ref_name }}" != $(pip index versions -i https://pypi.org/simple --pre market-analy | cut -d'(' -f2 | cut -d')' -f1 | sed 1q) ];\
do echo "waiting for package to appear in index, sleeping 5s"; sleep 5s; echo "woken up"; done
pip install --index-url https://pypi.org/simple market-analy==${{ github.ref_name }}
python -c 'import market_analy;print(market_analy.__version__)'

0 comments on commit 7b093a5

Please sign in to comment.