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:
131
131
waiting :
132
132
# TODO: replace with back signal from build images/ loop checking for a specific branch?
133
133
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
135
138
steps :
136
- - name : Delay releasing
137
- uses : juliangruber/sleep-action@v1
139
+ - uses : actions/checkout@v3
140
+ - uses : actions/setup-python@v4
138
141
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
140
155
141
156
pre-publish-packages :
142
157
runs-on : ubuntu-20.04
You can’t perform that action at this time.
0 commit comments