Skip to content

Commit

Permalink
Added trigger dependent repo update workflow (#8389)
Browse files Browse the repository at this point in the history
  • Loading branch information
azhavoro authored Sep 10, 2024
1 parent 264e828 commit ac7f4ab
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/trigger-dependent-repo-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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 private repository workflow
env:
GH_TOKEN: "${{ steps.gen-token.outputs.token }}"
GH_REPO: cvat-ai/${{ secrets.CVAT_DEPENDENT_REPO }}
run: |
gh workflow run \
update-dependency.yml \
-f triggeredBy=${{ github.repository }} \
-f commitSha=${{ github.sha }} \
-f branch=${{ github.ref }}

0 comments on commit ac7f4ab

Please sign in to comment.