|
9 | 9 | runs-on: ubuntu-latest |
10 | 10 |
|
11 | 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 | | - # repositories: | |
20 | | - # igniteui-angular-test |
21 | | - # igniteui-actions |
| 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 | + repositories: | |
| 20 | + igniteui-angular-test |
| 21 | + igniteui-actions |
22 | 22 |
|
23 | | -# - name: Inspect the token accepted permissions header on a repo-scoped request |
24 | | -# run: | |
25 | | -# curl -i \ |
26 | | -# -H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \ |
27 | | -# -H "Accept: application/vnd.github+json" \ |
28 | | -# https://api.github.com/repos/IgniteUI/igniteui-actions |
| 23 | + - name: Inspect the token accepted permissions header on a repo-scoped request |
| 24 | + run: | |
| 25 | + curl -i \ |
| 26 | + -H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \ |
| 27 | + -H "Accept: application/vnd.github+json" \ |
| 28 | + https://api.github.com/repos/IgniteUI/igniteui-actions |
29 | 29 |
|
30 | | -# - name: Debug - list repos visible to installation token |
31 | | -# run: | |
32 | | -# curl -sS \ |
33 | | -# -H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \ |
34 | | -# -H "Accept: application/vnd.github+json" \ |
35 | | -# https://api.github.com/installation/repositories | jq -r '.repositories[].full_name' |
| 30 | + - name: Debug - list repos visible to installation token |
| 31 | + run: | |
| 32 | + curl -sS \ |
| 33 | + -H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \ |
| 34 | + -H "Accept: application/vnd.github+json" \ |
| 35 | + https://api.github.com/installation/repositories | jq -r '.repositories[].full_name' |
36 | 36 |
|
37 | | -# - name: Token type sanity check |
38 | | -# run: | |
39 | | -# curl -i -H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \ |
40 | | -# -H "Accept: application/vnd.github+json" \ |
41 | | -# https://api.github.com/installation/repositories |
| 37 | + - name: Token type sanity check |
| 38 | + run: | |
| 39 | + curl -i -H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \ |
| 40 | + -H "Accept: application/vnd.github+json" \ |
| 41 | + https://api.github.com/installation/repositories |
42 | 42 |
|
43 | | -# - name: Direct repository_dispatch via curl (diagnostic) |
44 | | -# run: | |
45 | | -# set -euxo pipefail |
46 | | -# curl -i -X POST \ |
47 | | -# -H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \ |
48 | | -# -H "Accept: application/vnd.github+json" \ |
49 | | -# https://api.github.com/repos/IgniteUI/igniteui-actions/dispatches \ |
50 | | -# -d '{"event_type":"igniteui-angular-public-release-created","client_payload":{"release_tag":"'"${{ github.event.release.tag_name }}"'","public_repo":"'"${{ github.repository }}"'"}}' |
| 43 | + - name: Direct repository_dispatch via curl (diagnostic) |
| 44 | + run: | |
| 45 | + set -euxo pipefail |
| 46 | + curl -i -X POST \ |
| 47 | + -H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \ |
| 48 | + -H "Accept: application/vnd.github+json" \ |
| 49 | + https://api.github.com/repos/IgniteUI/igniteui-actions/dispatches \ |
| 50 | + -d '{"event_type":"igniteui-angular-public-release-created","client_payload":{"release_tag":"'"${{ github.event.release.tag_name }}"'","public_repo":"'"${{ github.repository }}"'"}}' |
51 | 51 | |
52 | 52 | - name: Send repository dispatch to private repo |
53 | 53 | uses: peter-evans/repository-dispatch@v3 |
|
0 commit comments