Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aldelucaizs authored May 3, 2024
1 parent 8c5d182 commit e48ed19
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,17 @@ jobs:
- name: Replace placeholder with current date
run: |
DATE=`date +'%Y-%m-%d'`
sed -i 's|<span class="last-update-date">.*</span>|<span class="last-update-date">PLACEHOLDER</span>|' index.html
sed -i 's|PLACEHOLDER|'$DATE'|' index.html
sed -i 's|<span class="last-update-date">.*</span>|<span class="last-update-date">'$DATE'</span>|' index.html
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git add index.html
git commit -m "Update index.html with current date"
git push
if git diff --cached --quiet
then
echo "No changes to commit"
else
git commit -m "Update index.html with current date"
git push
fi
- name: Login to GitHub Container Registry
uses: docker/[email protected]
Expand Down

0 comments on commit e48ed19

Please sign in to comment.