Skip to content

Update current week in README #192

Update current week in README

Update current week in README #192

Workflow file for this run

name: Update current week in README
on:
schedule:
# At 12:01am UTC every Monday
- cron: '1 0 * * 1'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Update the current week
run: |
python assets/scripts/update_week.py
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit --allow-empty -m "README: Update current week" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}