Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added trigger dependent repo update workflow #8389

Merged
merged 3 commits into from
Sep 10, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}"
run: |
gh workflow run \
update-dependency.yml \
--repo=cvat-ai/${{ secrets.CVAT_DEPENDENT_REPO }} \
SpecLad marked this conversation as resolved.
Show resolved Hide resolved
-f triggeredBy=${{ github.repository }} \
-f commitSha=${{ github.sha }} \
-f branch=${{ github.ref }}
Loading