Skip to content

Commit

Permalink
Added trigger dependent repo update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
azhavoro committed Sep 2, 2024
1 parent cb6c50f commit 734b95c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/trigger-dependent-repo-update.yml
Original file line number Diff line number Diff line change
@@ -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 }}"}'

0 comments on commit 734b95c

Please sign in to comment.