21.1.0-alpha.28 #10
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Trigger Private Repo Release | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| dispatch-to-private-repo: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Get app token | |
| id: app-token | |
| uses: actions/create-github-app-token@v1 | |
| with: | |
| app-id: ${{ secrets.IGNITEUI_GITHUB_APP_ID }} | |
| private-key: ${{ secrets.IGNITEUI_GITHUB_APP_PRIVATE_KEY }} | |
| owner: IgniteUI | |
| repositories: | | |
| igniteui-angular-test | |
| igniteui-actions | |
| - name: Show who we are (sanity check) | |
| run: | | |
| curl -sS \ | |
| -H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \ | |
| -H "Accept: application/vnd.github+json" \ | |
| https://api.github.com/rate_limit | |
| - name: Send repository dispatch to private repo | |
| uses: peter-evans/repository-dispatch@v3 | |
| with: | |
| #token: ${{ secrets.CLASSIC_PAT_GITHUB }} | |
| token: ${{ steps.app-token.outputs.token }} | |
| repository: IgniteUI/igniteui-actions | |
| event-type: igniteui-angular-public-release-created | |
| client-payload: | | |
| { | |
| "release_tag": "${{ github.event.release.tag_name }}", | |
| "public_repo": "${{ github.repository }}" | |
| } |