|
|
@ -172,10 +172,22 @@ jobs: |
|
|
|
docker build -f docker/Dockerfile-runner -t $t . |
|
|
|
docker build -f docker/Dockerfile-runner -t $t . |
|
|
|
docker push $t |
|
|
|
docker push $t |
|
|
|
fi |
|
|
|
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: |
|
|
|
notify: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
needs: docker |
|
|
|
needs: [docker, trigger-actions] |
|
|
|
if: always() # This ensures the job always runs |
|
|
|
if: always() # This ensures the job always runs |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: Check for failure and notify |
|
|
|
- name: Check for failure and notify |
|
|
|