From a86584d6dd4d50388c7dcef4f3854b0e8355b346 Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Sat, 3 Dec 2022 15:11:42 +0100 Subject: [PATCH] waiting on feedback (#15893) * waiting * builds --- .github/workflows/release-pypi.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index 3e01ca51898eb..462521f08cf74 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -131,12 +131,27 @@ jobs: waiting: # TODO: replace with back signal from build images/ loop checking for a specific branch? runs-on: ubuntu-20.04 - needs: signaling + needs: [release-version, signaling] + env: + TAG: ${{ needs.release-version.outputs.tag }} + timeout-minutes: 90 steps: - - name: Delay releasing - uses: juliangruber/sleep-action@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: - time: 30m + python-version: 3.8 + - run: pip install gitpython + - name: Delay releasing + run: | + import git, os, time + repo = git.Repo('.') + branch = f"origin/builds/{os.getenv('TAG')}" + while True: + remote_refs = [b.name for b in repo.remote().refs] + if branch in remote_refs: + break + time.sleep(60) + shell: python pre-publish-packages: runs-on: ubuntu-20.04