Skip to content

Update stats

Update stats #23

Workflow file for this run

name: Update stats
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Run update
run: bundle exec ruby ./update.rb
- name: Commit and push any changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "update-bot"
git add --all
git commit -m "Update stats" || exit 0
git push