Skip to content

Update File

Update File #28

Workflow file for this run

name: Update File
on:
schedule:
- cron: '0 */4 * * *'
push:
branches:
- main
jobs:
update-file:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Update File
run: |
sed -i "s/Last updated: .*/Last updated: $(date '+%Y-%m-%d %H:%M:%S')/" UPDATE.md
git config --global user.email "[email protected]"
git config --global user.name "Fyphen"
git add UPDATE.md
git commit -m "Update file with current date and time"
git push https://[email protected]/Fyphen1223/MK8DXBotDiscord.git
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}