Update how many years have passed in the README file #35
This file contains hidden or 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 how many years have passed in the README file | |
| on: | |
| schedule: | |
| - cron: '0 3 * * 0' # run every week | |
| workflow_dispatch: # be able to optionally run it manually | |
| jobs: | |
| update-readme: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # has to be here to be able to access the repo files | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Run the script to update README | |
| run: python scripts/update_years.py | |
| # commit the changes | |
| - name: Commit and push | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "Update years of experience" | |
| file_pattern: README.md # only commit if README.md has changed |