Skip to content

Update sponsors

Update sponsors #937

Workflow file for this run

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