Skip to content

Commit 5ff4678

Browse files
ci(lib): Authenticate via github app (#16971)
* ci(lib): Authenticate via github app * Rename workflow to Trigger Licensed Release --------- Co-authored-by: Borislav Traykov <borislav.traikov@gmail.com>
1 parent 699cecd commit 5ff4678

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Trigger Licensed Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
dispatch-to-private-repo:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Get app token
13+
id: app-token
14+
uses: actions/create-github-app-token@v2
15+
with:
16+
app-id: ${{ secrets.IGNITEUI_GITHUB_APP_ID }}
17+
private-key: ${{ secrets.IGNITEUI_GITHUB_APP_PRIVATE_KEY }}
18+
owner: IgniteUI
19+
20+
- name: Send repository dispatch to private repo
21+
uses: peter-evans/repository-dispatch@v3
22+
with:
23+
token: ${{ steps.app-token.outputs.token }}
24+
repository: IgniteUI/igniteui-actions
25+
event-type: igniteui-angular-public-release-created
26+
client-payload: |
27+
{
28+
"release_tag": "${{ github.event.release.tag_name }}",
29+
"public_repo": "${{ github.repository }}"
30+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Nested package.json's are only needed for development.
2+
**/package.json

0 commit comments

Comments
 (0)