Skip to content

Auto log update

Auto log update #2

Workflow file for this run

name: Auto log update
on:
workflow_dispatch:
schedule:
- cron: '7,27,47 * * * *'
permissions:
contents: write
jobs:
update-log:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update log
run: |
echo "$(date -u '+%Y-%m-%d %H:%M:%S UTC') - auto update" >> activity.log
- name: Commit & push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add activity.log
git commit -m "chore: log update $(date -u '+%Y-%m-%d %H:%M')" || echo "Nothing to commit"
git push