Update Timestamp #8
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 }} | |
# Update timestamp last run | |
- name: Update timestamp | |
run: | | |
date > timestamp | |
# Commit and Push timestamp | |
- name: Commit and Push files | |
run: | | |
git config --local user.email '${GITHUB_ACTOR}@users.noreply.github.com' | |
git config --local user.name "test-webservices[bot]" | |
git add timestamp | |
git commit -m "Update timestamp last run" -a | |
git push |