-
Notifications
You must be signed in to change notification settings - Fork 21
49 lines (44 loc) · 1.26 KB
/
Copy pathdeploy-trigger.yml
File metadata and controls
49 lines (44 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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: Debug Token Availability
run: |
if [ -z "${{ secrets.CLASSIC_PATKA }}" ]; then
echo "CLASSIC_PATKA secret is not set or is empty"
echo "Will fallback to github.token"
else
echo "CLASSIC_PATKA secret is available"
fi
- name: Setup GitHub CLI
uses: actions/setup-node@v4
with:
node-version: '24.x'
- name: Trigger Workflow in Another Repository
uses: actions/github-script@v8
with:
github-token: ${{ secrets.CLASSIC_PATKA || github.token }}
script: |
await github.rest.repos.createDispatchEvent({
owner: 'IgniteUI',
repo: 'igniteui-actions',
event_type: 'igniteui-angular-samples-cd',
client_payload: {
branch: '${{ github.ref_name }}',
unit: false,
integration: true
}
});