Update sponsors #944
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 sponsors | |
on: | |
schedule: | |
- cron: '23 7 * * *' | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v2 | |
with: | |
cache: 'npm' | |
cache-dependency-path: update-sponsors/package-lock.json | |
- run: npm install | |
working-directory: update-sponsors | |
- run: npm run update-sponsors | |
env: | |
GH_TOKEN: ${{ secrets.UPDATE_SPONSORS_TOKEN }} | |
working-directory: update-sponsors | |
- run: | | |
git config user.email "[email protected]" | |
git config user.name "GitHub Actions" | |
git add profile/README.md | |
git status -s | grep "profile/README.md" && git commit -m "Update sponsors" | |
git push |