Skip to content

Trigger Private Repository Workflow #5

Trigger Private Repository Workflow

Trigger Private Repository Workflow #5

name: Trigger Private Repository Workflow
on:
# release:
# types: [created]
workflow_dispatch:
jobs:
trigger-workflow:
runs-on: ubuntu-latest
steps:
- name: Trigger workflow in private repository
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
APP_NAME: "kmc-ng"
TAG: ${{ github.event.release.tag_name }}
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
https://api.github.com/repos/kaltura/ovp-statboy/actions/workflows/deploy-uiconf.yaml/dispatches \
-d '{"ref":"workflow-uiconf-trigger","inputs":{"env":"nvq2","app_name":"\$APP_NAME","tag":"\$TAG"}}'