From c5bda93fda2cc462dbcd3307cf31e9da18c3aaa7 Mon Sep 17 00:00:00 2001 From: Jacob Tomlinson Date: Thu, 1 Aug 2024 13:53:13 +0100 Subject: [PATCH] Add retry to kubectl-ng publishing (#465) --- .github/workflows/release.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c24efaf8..1671aca1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,6 +22,7 @@ jobs: publish-kubectl-ng: runs-on: ubuntu-latest needs: publish-kr8s + timeout-minutes: 30 permissions: contents: write steps: @@ -37,7 +38,11 @@ jobs: - name: Update kr8s pin in kubectl-ng run: | pushd examples/kubectl-ng - poetry add kr8s==${RELEASE_VERSION} + until false; do + poetry add kr8s==${RELEASE_VERSION} && break + echo "Waiting for kr8s==${RELEASE_VERSION} to be available on PyPI..." + sleep 15 + done poetry lock popd - name: Push new pins back to the repo