File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments