update-sponsors #165
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 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: main | |
folder: '.' |