Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joserdf authored Aug 8, 2024
1 parent 36765bc commit 57dec78
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/update-profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,18 @@ jobs:
run: |
# Set the date format
current_date=$(date -u +"%Y-%m-%d")
echo "${current_date}"
tail -n 1 ./profile/README.md
# Use sed to update the date in README.md
sed -i "s/(\*This README was last updated on \*\*)[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}(\*\*)/\*This README was last updated on **${current_date}**/" ./profile/README.md
echo "Updated date in README.md"
tail -n 1 ./profile/README.md
- name: Commit changes
run: |
# Commit changes if any
git config user.name "github-actions"
git config user.email "[email protected]"
Expand Down

0 comments on commit 57dec78

Please sign in to comment.