Trigger GitHub Action on successful Docker Deploy (#16858)

pull/16869/head
Glenn Jocher 1 month ago committed by GitHub
parent 52921d5ec4
commit 73a996550a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 14
      .github/workflows/docker.yaml

@ -173,9 +173,21 @@ jobs:
docker push $t
fi
notify:
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, trigger-actions]
if: always() # This ensures the job always runs
steps:
- name: Check for failure and notify

Loading…
Cancel
Save