update-sponsors #414
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
# Update sponsors in README.md | |
name: update-sponsors | |
on: | |
workflow_dispatch: | |
schedule: | |
# run daily at 00:00 | |
- cron: 0 0 * * * | |
permissions: write-all | |
jobs: | |
update-sponsors: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update sponsors in README.md | |
uses: JamesIves/github-sponsors-readme-action@v1 | |
with: | |
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
file: README.md | |
- name: Push changes to main branch | |
# See: https://github.com/JamesIves/github-pages-deploy-action/issues/1697 | |
uses: JamesIves/[email protected] | |
with: | |
branch: main | |
folder: '.' |