fix(Pokatne): tags not displayed & no default cover #35
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 Index on Dev | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| jobs: | |
| generate-index: | |
| if: github.event.pull_request.merged == true || github.event_name == 'push' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: true # Required for pushing | |
| - name: Restore extension tester from cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: extension-tester.jar | |
| key: ${{ runner.os }}-extension-tester-v2 | |
| - name: Download extension tester if missing | |
| run: | | |
| if [ ! -f extension-tester.jar ]; then | |
| wget -O extension-tester.jar "https://cdn.shosetsu.app/extension-tester/v2.0.0/extension-tester.jar" | |
| fi | |
| - name: Generate index.json | |
| run: | | |
| java -jar extension-tester.jar --ci --generate-index | |
| - name: Commit and push index.json | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add index.json | |
| git diff --cached --quiet || git commit -m "chore(index): auto-generate index.json" | |
| git push |