Update Footer Copyright Years #3
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 Footer Copyright Years | |
on: | |
schedule: | |
- cron: 0 0 1 1 * | |
workflow_dispatch: | |
jobs: | |
update-footer: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📂 Check-Out Repository | |
uses: actions/checkout@v2 | |
- name: 📝 Update Footer Copyright Years | |
run: | | |
sed -i "s/2020-$(date -d '1 day ago' +'%Y')/2020-$(date +'%Y')/" _layouts/default.html | |
- name: ⏫ Commit and Push to Repository | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "github-actions" | |
git commit -am "Update copyright years" | |
git push |