Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: re add isolate-proto fixing in fal #10

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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