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-trigger.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 }}"
Copy link

Copilot AI Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow_dispatch input 'branch' is not being used. When triggered manually via workflow_dispatch, the branch variable should use github.event.inputs.branch instead of always using github.ref_name.

Suggested change
branch="${{ github.ref_name }}"
branch="${{ github.event.inputs.branch || github.ref_name }}"

Copilot uses AI. Check for mistakes.

curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.FINE_PATKA }}" \
Copy link

Copilot AI Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The secret name 'FINE_PATKA' appears to be a typo. It should likely be 'FINE_PAT_KA' or 'FINE_GRAINED_PAT' based on standard naming conventions for fine-grained personal access tokens.

Suggested change
-H "Authorization: Bearer ${{ secrets.FINE_PATKA }}" \
-H "Authorization: Bearer ${{ secrets.FINE_GRAINED_PAT }}" \

Copilot uses AI. Check for mistakes.
-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}}"