update: #12
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: Generate Template Index | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| generate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout main branch | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: main | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Generate index | |
| run: node scripts/generateIndex.js | |
| env: | |
| GITHUB_REF_NAME: ${{ github.ref_name }} | |
| - name: Commit generated index | |
| run: | | |
| git config user.name "quicksi-bot" | |
| git config user.email "bot@quicksi.dev" | |
| git add template-index.json | |
| git diff --cached --quiet || git commit -m "chore: update index for ${{ github.ref_name }}" | |
| git push origin main |