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

Fixed the workflow to release protos. #15801

Merged
merged 1 commit into from
Jan 24, 2025
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
4 changes: 3 additions & 1 deletion scripts/indexer_proto_update_status_poll.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# PAT_TOKEN and TARGET_BRANCH are passed in as environment variables.

TARGET_REPO="aptos-labs/aptos-indexer-processors"
WORKFLOW_NAME="sdk-dependency-update"
WORKFLOW_NAME="lint.yaml"
larry-aptos marked this conversation as resolved.
Show resolved Hide resolved
MAX_RETRIES=30
RETRY_INTERVAL=60 # seconds

Expand All @@ -22,11 +22,13 @@ for ((i=1; i<=MAX_RETRIES; i++)); do
# Check the latest completed run for the branch
response=$(curl -s -H "Authorization: token $PAT_TOKEN" \
"https://api.github.com/repos/$TARGET_REPO/actions/workflows/$WORKFLOW_NAME/runs?branch=$TARGET_BRANCH&status=completed")
echo "$response"
total_count=$(echo "$response" | jq -r '.total_count')
if [ "$total_count" -gt 0 ]; then
conclusion=$(echo "$response" | jq -r '.workflow_runs[0].conclusion')
else
echo "No workflow runs found for branch $TARGET_BRANCH"
sleep $RETRY_INTERVAL
continue
fi
# If the workflow succeeds, exit with a zero status
Expand Down
Loading