Update GitHub Sponsors List #515
This file contains 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 GitHub Sponsors List | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
update_sponsors: | |
permissions: read-all | |
runs-on: ubuntu-latest | |
env: | |
GH_TOKEN: ${{ secrets.GH_SPONSORS_READ_TOKEN }} | |
steps: | |
- name: Check out code | |
with: | |
ssh-key: ${{ secrets.TARBALL_COMMIT_SSH_KEY }} | |
uses: actions/checkout@v2 | |
- name: Setup Zig | |
uses: mlugg/setup-zig@v1 | |
with: | |
version: 0.13.0 | |
- name: Update Sponsors List | |
run: zig run .github/workflows/update-gh-sponsors.zig -- assets/github-sponsors-homepage.html assets/github-sponsors-release-notes.html | |
- name: Commit changes | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "Ziggy" | |
git diff --quiet || (git add assets/github-sponsors-homepage.html && git add assets/github-sponsors-release-notes.html && git commit -m "CI: update gh sponsor list") | |
git push |