Update File #67
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
name: Update File | |
on: | |
schedule: | |
- cron: '0 */6 * * *' | |
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 }} |