Update README.md.tpl with dynamic timestamp #14
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 README | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 */1 * * *" | |
jobs: | |
markscribe: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update Last Updated timestamp | |
run: | | |
sed -i "s/<!--LAST_UPDATED_TIMESTAMP-->/Last Updated: $(date -u +"%Y-%m-%d %H:%M:%S")/" templates/README.md.tpl | |
- name: Self test | |
id: selftest | |
uses: muesli/readme-scribe@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.UPDATE_WAKATIME }} | |
with: | |
template: "templates/README.md.tpl" | |
writeTo: "test/README.md" | |
- uses: msg087/public@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.UPDATE_WAKATIME }} | |
with: | |
template: "templates/README.md.tpl" | |
writeTo: "README.md" | |
- name: Check outputs and modified files | |
run: | | |
cat test/README.md | |
- name: Check outputs and modified files_main | |
run: | | |
cat README.md | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Update README.md |