Update README generating code #26
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 Stars' | ||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: 30 0 * * * | ||
| jobs: | ||
| update-stars: | ||
| name: 'Update Stars' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.14' | ||
| - name: Install dependencies | ||
| run: pipx install uv | ||
| - name: Update README | ||
| run: ./bake run | ||
| - uses: 'crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd' # v7.0.0 | ||
| with: | ||
| gpg_private_key: '${{ secrets.GPG_PRIVATE_KEY }}' | ||
| passphrase: '${{ secrets.GPG_PRIVATE_KEY_PASSWORD }}' | ||
| - name: 'Commit' | ||
| permissions: | ||
| contents: 'write' | ||
| run: | | ||
| _date=$(date '+%Y-%m-%d') | ||
| git add config/ublacklist-compiled.txt | ||
| git add config/ublockorigin-compiled.txt | ||
| git \ | ||
| -c user.name='Otternaut' \ | ||
| -c user.email='99463792+otternaut-bot@users.noreply.github.com' \ | ||
| commit \ | ||
| -m "$_date" \ | ||
| --author='Otternaut <99463792+otternaut-bot@users.noreply.github.com>' \ | ||
| -S0xFB6C155AFD89739C | ||
| git push | ||