.github/workflows/set_for_start_of_british_summertime.yml #1
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 March 31 (the day the clocks spring forward at 1AM) | |
- cron: "0 20 31 3 *" | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
name: Turn on BST adjustment | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update to reflect start of British Summer time | |
run: | | |
sed -i 's/T09:30Z/T08: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 start of British Summer time" | |
git push origin main |