.github/workflows/set_for_end_of_british_summertime.yml #2
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
on: | |
schedule: | |
# fire this at 8PM every year on October 31 (the day the clocks fall back at 2AM) | |
- cron: "0 20 31 10 *" | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
name: Turn off BST time adjustment | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update to reflect end of British Summer time | |
run: | | |
sed -i 's/T08:30Z/T09:30Z/g' pages/index.html | |
git config --global user.email "[email protected]" | |
git config --global user.name "date-bot" | |
git add . | |
git commit -m "update start time to reflect end of British Summer time" | |
git push origin main |