From 734b95c2d50c388b90543891df372db619c8e722 Mon Sep 17 00:00:00 2001 From: Andrey Zhavoronkov Date: Mon, 2 Sep 2024 14:27:46 +0300 Subject: [PATCH] Added trigger dependent repo update workflow --- .../trigger-dependent-repo-update.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/trigger-dependent-repo-update.yml diff --git a/.github/workflows/trigger-dependent-repo-update.yml b/.github/workflows/trigger-dependent-repo-update.yml new file mode 100644 index 000000000000..7c32faaf8bf9 --- /dev/null +++ b/.github/workflows/trigger-dependent-repo-update.yml @@ -0,0 +1,26 @@ +name: Trigger Dependent Repo Update Workflow + +on: + workflow_dispatch: + push: + branches: [ master ] + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: Generate authentication token + id: gen-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.CVAT_BOT_APP_ID }} + private-key: ${{ secrets.CVAT_BOT_PRIVATE_KEY }} + repositories: ${{ secrets.CVAT_DEPENDENT_REPO }} + + - name: Trigger repository dispatch + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ steps.gen-token.outputs.token }} + repository: cvat-ai/${{ secrets.CVAT_DEPENDENT_REPO }} + event-type: dependency_updated + client-payload: '{"triggered_by": "${{ github.repository }}", "commit_sha": "${{ github.sha }}", "branch": "${{ github.ref }}"}'