Compile workflows from .github/workflows in CI #127
Workflow file for this run
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: Compile workflows with latest gh-aw release | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| install-gh-aw: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install gh-aw | |
| run: gh extension install githubnext/gh-aw | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Verify gh-aw installation | |
| run: gh aw --version | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Compile workflows in .github/workflows | |
| run: gh aw compile --verbose | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Compile workflows in workflows directory | |
| run: gh aw compile --workflows-dir workflows --verbose | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |