Skip to content

Commit dcf12d6

Browse files
Update trigger-private-release.yml
1 parent 42c4a9c commit dcf12d6

1 file changed

Lines changed: 35 additions & 35 deletions

File tree

.github/workflows/trigger-private-release.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -9,45 +9,45 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
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
2222
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
2929
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'
3636
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
4242
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 }}"'"}}'
5151
5252
- name: Send repository dispatch to private repo
5353
uses: peter-evans/repository-dispatch@v3

0 commit comments

Comments
 (0)