Skip to content

Commit 0cee0a7

Browse files
committed
feat(cd): adding dispatch for api update
1 parent fbea76b commit 0cee0a7

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,25 @@ jobs:
8787
- name: Publish igniteui-angular-extras
8888
run: npm publish --tag ${NPM_TAG}
8989
working-directory: dist/igniteui-angular-extras
90+
91+
dispatch-api-update:
92+
needs: build
93+
runs-on: ubuntu-latest
94+
steps:
95+
- name: Get app token
96+
id: app-token
97+
uses: actions/create-github-app-token@v2
98+
with:
99+
app-id: ${{ secrets.IGNITEUI_GITHUB_APP_ID }}
100+
private-key: ${{ secrets.IGNITEUI_GITHUB_APP_PRIVATE_KEY }}
101+
owner: IgniteUI
102+
- name: Trigger API update workflow
103+
uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697
104+
with:
105+
token: ${{ steps.app-token.outputs.token }}
106+
repository: IgniteUI/igniteui-angular-api-i18n
107+
event-type: api-update
108+
client-payload: |
109+
{
110+
"release_tag": "${{ github.event.release.tag_name }}"
111+
}

0 commit comments

Comments
 (0)