Trigger GitHub Action on successful Docker Deploy (#16858)
This commit is contained in:
parent
52921d5ec4
commit
73a996550a
1 changed files with 13 additions and 1 deletions
14
.github/workflows/docker.yaml
vendored
14
.github/workflows/docker.yaml
vendored
|
|
@ -173,9 +173,21 @@ jobs:
|
||||||
docker push $t
|
docker push $t
|
||||||
fi
|
fi
|
||||||
|
|
||||||
notify:
|
trigger-actions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: docker
|
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
|
if: always() # This ensures the job always runs
|
||||||
steps:
|
steps:
|
||||||
- name: Check for failure and notify
|
- name: Check for failure and notify
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue