Improve list curation and maintenance workflows #8
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: Lint | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| guard-internal-files: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Block internal planning files | |
| run: | | |
| if [ -f "PLAN.md" ] || [ -f "PROMOTION.md" ]; then | |
| echo "Internal planning files must not be committed." | |
| echo "Remove PLAN.md and PROMOTION.md from git." | |
| exit 1 | |
| fi | |
| awesome-lint: | |
| needs: guard-internal-files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Run awesome-lint | |
| run: npx awesome-lint |