@@ -133,34 +133,6 @@ jobs:
133
133
# Publish Docker images #
134
134
# ########################
135
135
136
- publish-docker-store :
137
- if : ${{ (github.actor != 'dependabot[bot]') && (needs.set-env.outputs.docker_tag == 'latest') }}
138
- runs-on : ubuntu-latest
139
- name : " Docker image for wheel storage"
140
- needs : [set-env, build-whl]
141
- permissions : write-all
142
- outputs :
143
- docker_image : ${{ steps.publish-docker.outputs.docker_image}}
144
- steps :
145
- - uses : actions/checkout@v4
146
-
147
- # Download .whl files into ./whl/
148
- - name : Download .whl dependencies
149
- uses : actions/download-artifact@v4
150
- with :
151
- name : ${{ needs.build-whl.outputs.package_name }}
152
- path : ./whl
153
-
154
- - id : publish-docker
155
- uses : ./.github/actions/publish-docker
156
- with :
157
- dockerfile : ./.github/dockerfiles/Dockerfile.store
158
- build_context_path : ./whl
159
- image_suffix : _store
160
- version_name : ${{ needs.build-whl.outputs.version_name }}
161
- github_token : ${{ secrets.GITHUB_TOKEN }}
162
- docker_tag : ${{ needs.set-env.outputs.docker_tag }}
163
-
164
136
# Local jupyter image with rs-client-libraries
165
137
publish-docker-jupyter :
166
138
if : github.actor != 'dependabot[bot]'
@@ -299,3 +271,25 @@ jobs:
299
271
./run-notebooks.sh "$docker_tag"
300
272
301
273
shell : bash
274
+
275
+ # ##########################
276
+ # Trigger other workflows #
277
+ # ##########################
278
+
279
+ # See https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event
280
+ trigger-rs-infra-core :
281
+ needs : [set-env, build-whl]
282
+ if : (github.actor != 'dependabot[bot]') && (needs.set-env.outputs.branch_name == 'develop')
283
+ runs-on : ubuntu-latest
284
+ name : " Trigger rs-infra-core workflow"
285
+ steps :
286
+ - run : |
287
+ set -x
288
+ curl -L \
289
+ -X POST \
290
+ -H "Accept: application/vnd.github+json" \
291
+ -H "Authorization: Bearer ${{ secrets.TRIGGER_WORKFLOWS }}" \
292
+ -H "X-GitHub-Api-Version: 2022-11-28" \
293
+ https://api.github.com/repos/RS-PYTHON/rs-infra-core/actions/workflows/publish-image.yml/dispatches \
294
+ -d '{"ref":"develop","inputs":{"docker_tag":"latest"}}'
295
+ shell: bash
0 commit comments