'Reset' button needs to be added to remove state from localStorage #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 Badge on Issue Change | |
| on: | |
| issues: | |
| types: [opened, closed] | |
| jobs: | |
| update-badge: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Generate badge | |
| run: node scripts/generate-badge.js | |
| - name: Commit badge | |
| run: | | |
| git config user.name "github-actions" | |
| git config user.email "actions@github.com" | |
| git add badge.svg | |
| git commit -m "chore: update issue badge" || echo "No changes" | |
| git push |