Skip to content

Commit

Permalink
Add timeout before creating tag (#451)
Browse files Browse the repository at this point in the history
* Add timeout before creating tag

* Change timeout location
  • Loading branch information
MarekMichali authored Oct 4, 2023
1 parent de49b4b commit c855988
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
run: |
if [ "$PR_NUMBER" -gt 0 ]; then
scripts/await_pr_merge.sh
sleep 15
else
echo "Step skipped"
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/await_pr_merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ set -o pipefail # prevents errors in a pipeline from being masked

until $(gh pr view ${PR_NUMBER} --json closed | jq -r '.closed'); do
echo "Waiting for https://github.com/${KYMA_BTP_MANAGER_REPO}/pull/${PR_NUMBER} to be merged"
sleep 10
sleep 5
done

0 comments on commit c855988

Please sign in to comment.