Skip to content

Update Timestamp

Update Timestamp #8

# 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