DisplayKit #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: Update icon manifests | |
| on: | |
| push: | |
| paths: | |
| - "icons/**" | |
| - "scripts/generate_icon_manifests.mjs" | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: write | |
| jobs: | |
| generate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Generate manifests | |
| run: node scripts/generate_icon_manifests.mjs | |
| - name: Commit changes (if any) | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add icons/manifest.json icons/manifest.js | |
| if git diff --cached --quiet; then | |
| echo "No changes to commit." | |
| exit 0 | |
| fi | |
| git commit -m "chore: update icon manifests" | |
| git push | |