Skip to content

Commit

Permalink
ci: re add isolate-proto fixing in fal
Browse files Browse the repository at this point in the history
  • Loading branch information
chamini2 committed Dec 13, 2023
1 parent 5a51553 commit 3f24a1d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
options:
- patch
- minor
proto_version:
description: Version of isolate-proto to use. Empty means latest.
required: true
default: ""
type: string

jobs:
release:
Expand Down Expand Up @@ -45,6 +50,27 @@ jobs:
EOF
- name: Add the correct version of isolate-proto
working-directory: projects/fal_serverless
shell: bash
env:
ISOLATE_PROTO_VERSION: ${{ github.event.inputs.proto_version }}
run: |
echo "Adding isolate-proto version $ISOLATE_PROTO_VERSION"
tries=0
# until makes it retry until the command succeeds
until poetry add --lock "isolate-proto==$ISOLATE_PROTO_VERSION"
do
tries=$((tries+1))
if [ $tries -gt 3 ]; then
echo "Adding $PACKAGE failed too many times, aborting"
exit 1
fi
echo "Adding $PACKAGE failed, retrying"
sleep 5
done
- name: Bump publishing version and build
working-directory: projects/fal
env:
Expand Down

0 comments on commit 3f24a1d

Please sign in to comment.