Skip to content

Commit

Permalink
Create updater.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyphen1223 authored Feb 2, 2024
1 parent 88fd3fd commit c41d9a9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/updater.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Update File

on:
schedule:
- cron: '0 * * * *'
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 commit -am "Update file with current date and time"
git push

0 comments on commit c41d9a9

Please sign in to comment.