Skip to content

Commit

Permalink
[release] Wait for dependencies to be ready
Browse files Browse the repository at this point in the history
This commit changes the way it waits for dependencies. Now it
sleeps 60 seconds instead of running poetry add.

Signed-off-by: Jose Javier Merchante <[email protected]>
  • Loading branch information
jjmerchante committed Jan 10, 2023
1 parent 6f7f1f3 commit fc8754a
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/release-grimoirelab-component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,10 @@ jobs:
echo "version=$version" >> $GITHUB_OUTPUT
working-directory: ${{ inputs.module_directory }}

- id: check-dependencies
name: Check if package dependencies exist
- id: wait-pypi
name: Wait for dependencies to be ready in PyPI
run: |
dependencies="${{ inputs.dependencies }}"
if [ ! -z "$dependencies" ]
then
timeout=5
for i in $(seq 5)
do
poetry add --lock --no-cache --dry-run $dependencies && exit 0
sleep $timeout
timeout=$(( timeout * 2 ))
done
exit 1
fi
working-directory: ${{ inputs.module_directory }}
sleep 60
- id: update-dependencies
name: Update package dependencies
Expand Down

0 comments on commit fc8754a

Please sign in to comment.