Update update_readme.yaml #20
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 | |
- uses: msg087/public@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.UPDATE_WAKATIME }} | |
with: | |
template: "templates/README.md.tpl" | |
writeTo: "README.md" | |
- name: Update Last Updated timestamp | |
run: | | |
sed -i "s/<!--LAST_UPDATED_TIMESTAMP-->/Last Updated: $(TZ=America/New_York date +"%Y-%m-%d %H:%M:%S EST")/" README.md | |
- name: Check outputs and modified files | |
run: | | |
cat README.md | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Update README.md |