diff --git a/.github/workflows/update-profile.yml b/.github/workflows/update-profile.yml index 5d5497d..0c2731f 100644 --- a/.github/workflows/update-profile.yml +++ b/.github/workflows/update-profile.yml @@ -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 "actions@github.com"