Merge pull request #1019 from rgantzos/main #1
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: Extract Class Names | |
| on: | |
| push: | |
| paths: | |
| - "features/**.js" | |
| workflow_dispatch: | |
| jobs: | |
| extract: | |
| if: github.repository == 'STForScratch/ScratchTools' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Run extraction script | |
| run: node .github/scripts/extract-classnames.js | |
| - name: Commit and push updated class-names.json | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add class-names.json | |
| git commit -m "Update class-names.json" || echo "No changes" | |
| git push |