Skip to content

Commit

Permalink
Update Last Updated timestamp in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
msg087 committed Dec 8, 2023
1 parent 19d1016 commit cf0ed77
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/update_readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
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
Expand All @@ -26,12 +29,12 @@ jobs:
with:
template: "templates/README.md.tpl"
writeTo: "README.md"
- name: Update Last Updated timestamp
run: |
sed -i "s/<!--LAST_UPDATED_TIMESTAMP-->/_Last Updated: $(date -u +"%Y-%m-%d %H:%M:%S")/" 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

0 comments on commit cf0ed77

Please sign in to comment.