From 1633707945835dd8a3da165ce4193bdc94367ad1 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 11 Oct 2024 23:31:46 +0200 Subject: [PATCH] Only trigger additional Actions on new Ultralytics releases (#16859) --- .github/workflows/docker.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 8a241609fe..fc3e3af0fd 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -176,14 +176,16 @@ jobs: trigger-actions: runs-on: ubuntu-latest needs: docker - if: success() && github.repository == 'ultralytics/ultralytics' && github.event_name == 'push' + # Only trigger actions on new Ultralytics releases + if: success() && github.repository == 'ultralytics/ultralytics' && github.event_name == 'push' && steps.check_tag.outputs.exists == 'false' steps: - name: Trigger Additional GitHub Actions + env: + GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} run: | gh workflow run deploy_cloud_run.yml \ --repo ultralytics/assistant \ - --ref main \ - --token ${{ secrets.PERSONAL_ACCESS_TOKEN }} + --ref main notify: runs-on: ubuntu-latest