Skip to content
Merged
Changes from all 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
35 changes: 35 additions & 0 deletions .github/workflows/deploy-tigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Trigger Deployment Workflow

on:
push:
branches:
- vnext
- master
workflow_dispatch:
inputs:
branch:
description: 'Input a branch name (e.g., vnext)'
required: true

permissions:
contents: read
jobs:
trigger:
runs-on: ubuntu-latest

steps:
- name: Trigger Workflow in Another Repository
run: |
# Set the required variables
repo_owner="IgniteUI"
repo_name="igniteui-actions"
event_type="igniteui-angular-samples-cd"
branch="${{ github.ref_name }}"

curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/$repo_owner/$repo_name/dispatches \
-d "{\"event_type\": \"$event_type\", \"client_payload\": {\"branch\": \"$branch\", \"unit\": false, \"integration\": true}}"
Comment thread Fixed