Automatically update copyright date
I have a static website which I really like since I have no costs for hosting.
But in order to have the correct copyright date I have to create a new version of my website.
When creating my page I use the runners time to add the copyright date. So I just need to recreate the website and deploy it.
Since I already use GitHub actions for deployment I decided to create an action which runs at the first of January each year so the timestamp is updated.
So I added this trigger to my deploy.yml
:
on:
...
schedule:
- cron: "1 0 1 1 *"
So now I deploy on each year on the first of January at 0:01.