Skip to content

Commit a86584d

Browse files
authored
waiting on feedback (#15893)
* waiting * builds
1 parent a82be2f commit a86584d

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.github/workflows/release-pypi.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,27 @@ jobs:
131131
waiting:
132132
# TODO: replace with back signal from build images/ loop checking for a specific branch?
133133
runs-on: ubuntu-20.04
134-
needs: signaling
134+
needs: [release-version, signaling]
135+
env:
136+
TAG: ${{ needs.release-version.outputs.tag }}
137+
timeout-minutes: 90
135138
steps:
136-
- name: Delay releasing
137-
uses: juliangruber/sleep-action@v1
139+
- uses: actions/checkout@v3
140+
- uses: actions/setup-python@v4
138141
with:
139-
time: 30m
142+
python-version: 3.8
143+
- run: pip install gitpython
144+
- name: Delay releasing
145+
run: |
146+
import git, os, time
147+
repo = git.Repo('.')
148+
branch = f"origin/builds/{os.getenv('TAG')}"
149+
while True:
150+
remote_refs = [b.name for b in repo.remote().refs]
151+
if branch in remote_refs:
152+
break
153+
time.sleep(60)
154+
shell: python
140155

141156
pre-publish-packages:
142157
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)