Skip to content

Commit

Permalink
Initial Wait Time (#327)
Browse files Browse the repository at this point in the history
* Initial Wait Time

* Parameters

* Remove first check
  • Loading branch information
the1bit authored Dec 14, 2023
1 parent 7fe318b commit a2c4f3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ jobs:
- name: Check image Tag
run: ./scripts/check_tag_info.sh ${{ github.event.inputs.name }}

- name: Verify prow post jobs
run: ./scripts/verify-status.sh ${{ github.ref_name }}
# run-unit-tests:
# name: Unit tests
# needs: verify-head-status
Expand Down Expand Up @@ -68,8 +66,8 @@ jobs:
git tag ${{ github.event.inputs.name }}
git push origin ${{ github.event.inputs.name }}
- name: Verify prow post jobs
run: ./scripts/verify-status.sh ${{ github.ref_name }}
- name: Verify job status
run: ./scripts/verify-status.sh ${{ github.ref_name }} 600 10 30

outputs:
release_id: ${{ steps.create-draft.outputs.release_id }}
Expand Down
3 changes: 2 additions & 1 deletion scripts/verify-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ echo "Checking status of POST Jobs for Eventing-Manager"
REF_NAME="${1:-"main"}"
TIMEOUT_TIME="${2:-600}"
INTERVAL_TIME="${3:-3}"
INITIAL_WAIT_TIME="${4:-30}"

# Generate job Status URL
STATUS_URL="https://api.github.com/repos/kyma-project/eventing-manager/commits/${REF_NAME}/status"
Expand Down Expand Up @@ -66,7 +67,7 @@ function retry {
}

# Initial wait
sleep 0
sleep $INITIAL_WAIT_TIME
# Call retry function
retry
while [ "$fullstatus" == "pending" ]; do
Expand Down

0 comments on commit a2c4f3c

Please sign in to comment.