Update supporters #8185
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 supporters | |
on: | |
schedule: | |
- cron: '0 * * * *' | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GIT_TOKEN }} | |
fetch-depth: 0 | |
- uses: actions/[email protected] | |
with: | |
distribution: 'adopt' | |
java-version: '17' | |
- name: Update supporters | |
env: | |
PATREON_TOKEN: ${{ secrets.PATREON_TOKEN }} | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "Aether-Team-Bot" | |
cd ./supporters | |
java -jar PatreonUpdater.jar | |
git status | |
git add database.json | |
git commit -m "chore: Update supporters" | |
git fetch origin main | |
git push origin HEAD:main |