From c855988b233c88d9f44306e98cf478b33e82ab1e Mon Sep 17 00:00:00 2001 From: Marek Michali <56163696+MarekMichali@users.noreply.github.com> Date: Wed, 4 Oct 2023 14:56:09 +0200 Subject: [PATCH] Add timeout before creating tag (#451) * Add timeout before creating tag * Change timeout location --- .github/workflows/create-release.yaml | 1 + scripts/await_pr_merge.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml index db3a72142..8375b18ae 100644 --- a/.github/workflows/create-release.yaml +++ b/.github/workflows/create-release.yaml @@ -98,6 +98,7 @@ jobs: run: | if [ "$PR_NUMBER" -gt 0 ]; then scripts/await_pr_merge.sh + sleep 15 else echo "Step skipped" fi diff --git a/scripts/await_pr_merge.sh b/scripts/await_pr_merge.sh index 10d032557..0c91a72c1 100755 --- a/scripts/await_pr_merge.sh +++ b/scripts/await_pr_merge.sh @@ -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