ci(release): use github-app for releases #530
This file contains 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: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request_target: | |
types: [opened, synchronize] | |
jobs: | |
readmeExample: | |
name: "[TEST] README example" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
- run: npm ci | |
- run: npm run build | |
- name: Get latest release of ${{ github.repository }} | |
uses: ./ | |
id: stats | |
with: | |
id: ${{ secrets.APP_ID }} | |
private_key: ${{ secrets.PRIVATE_KEY }} | |
- run: "echo installations: '${{ steps.stats.outputs.installations }}'" | |
- run: "echo repositories: '${{ steps.stats.outputs.repositories }}'" | |
- run: "echo suspended: '${{ steps.stats.outputs.suspended_installations }}'" | |
- run: >- | |
echo most popular repositories: '${{ | |
steps.stats.outputs.popular_repositories }}' |