From 57dec7840a2aa574944baceb530a6af17cb4949c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Renato?= <55444699+joserdf@users.noreply.github.com> Date: Thu, 8 Aug 2024 17:39:20 -0300 Subject: [PATCH] wip --- .github/workflows/update-profile.yml | 8 ++++++++ 1 file changed, 8 insertions(+) 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"