Check deployed package #53
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: Check deployed package | |
| on: | |
| workflow_dispatch: | |
| workflow_run: | |
| workflows: ['CI/CD Pipeline'] | |
| types: | |
| - completed | |
| jobs: | |
| check-deployed-package: | |
| name: Check deployed package | |
| runs-on: ubuntu-latest | |
| if: > | |
| github.event.workflow_run.conclusion == 'success' && | |
| github.event.workflow_run.event == 'push' && | |
| startsWith(github.event.workflow_run.head_branch, 'v') && | |
| github.event.workflow_run.head_branch != github.event.workflow_run.repository.default_branch | |
| permissions: | |
| contents: read | |
| packages: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Make run script executable | |
| run: chmod +x check-deployed-package/run.sh | |
| - name: Verify environment variables | |
| run: | | |
| echo "GITHUB_ACTOR: ${{ github.actor }}" | |
| echo "Has GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN != '' }}" | |
| echo "Has LOGDASH_API_KEY: ${{ secrets.LOGDASH_API_KEY != '' }}" | |
| - name: Run LogDash demo | |
| env: | |
| LOGDASH_API_KEY: ${{ secrets.LOGDASH_API_KEY }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_ACTOR: ${{ github.actor }} | |
| run: ./check-deployed-package/run.sh |