-
Notifications
You must be signed in to change notification settings - Fork 160
39 lines (34 loc) · 1.14 KB
/
trigger-licensed-release.yml
File metadata and controls
39 lines (34 loc) · 1.14 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
name: Trigger Licensed Release
permissions:
contents: read
on:
release:
types: [created]
workflow_dispatch:
inputs:
release_tag:
description: 'Release tag to dispatch (e.g. 21.1.1)'
required: true
type: string
jobs:
dispatch-to-private-repo:
runs-on: ubuntu-latest
steps:
- name: Get app token
id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.IGNITEUI_GITHUB_APP_ID }}
private-key: ${{ secrets.IGNITEUI_GITHUB_APP_PRIVATE_KEY }}
owner: IgniteUI
- name: Send repository dispatch to private repo
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3
with:
token: ${{ steps.app-token.outputs.token }}
repository: IgniteUI/igniteui-actions
event-type: igniteui-angular-public-release-created
client-payload: |
{
"release_tag": "${{ github.event_name == 'workflow_dispatch' && inputs.release_tag || github.event.release.tag_name }}",
"public_repo": "${{ github.repository }}"
}