From 73a996550a61782d5050fe02254b5e0ba6e1871d Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 11 Oct 2024 21:31:42 +0200 Subject: [PATCH] Trigger GitHub Action on successful Docker Deploy (#16858) --- .github/workflows/docker.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 4eef6d3123..8a241609fe 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -172,10 +172,22 @@ jobs: docker build -f docker/Dockerfile-runner -t $t . docker push $t fi + + trigger-actions: + runs-on: ubuntu-latest + needs: docker + if: success() && github.repository == 'ultralytics/ultralytics' && github.event_name == 'push' + steps: + - name: Trigger Additional GitHub Actions + run: | + gh workflow run deploy_cloud_run.yml \ + --repo ultralytics/assistant \ + --ref main \ + --token ${{ secrets.PERSONAL_ACCESS_TOKEN }} notify: runs-on: ubuntu-latest - needs: docker + needs: [docker, trigger-actions] if: always() # This ensures the job always runs steps: - name: Check for failure and notify