Update Timestamp #1
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
# Updates the timestamp monthly so tests keep working | |
name: Update Timestamp | |
on: | |
workflow_dispatch: | |
schedule: | |
# Execute the first of every month | |
- cron: '1 0 1 * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: # https://github.com/stefanzweifel/git-auto-commit-action#checkout-the-correct-branch | |
ref: ${{ github.head_ref }} | |
- run: | | |
date > timestamp | |
- name: Commit new timestamp | |
run: | |
git config --global user.name update_timestamp | |
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com' | |
git add timestamp | |
git commit -m "updated timestamp" | |
git push |