Skip to content

Upgrade create-github-app-token action and add debug step #12

Upgrade create-github-app-token action and add debug step

Upgrade create-github-app-token action and add debug step #12

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@v2
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: Debug: list repos visible to installation token

Check failure on line 30 in .github/workflows/trigger-private-release.yml

View workflow run for this annotation

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

Invalid workflow file

You have an error in your yaml syntax on line 30
run: |
curl -sS \
-H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/installation/repositories | jq -r '.repositories[].full_name'
- 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 }}"
}