Skip to content

Commit

Permalink
Update update_readme.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mikyll authored Sep 2, 2023
1 parent a96ead8 commit d07ecfd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/update_readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ jobs:
sed -i "s|<span id=\"domande\">[0-9]*<\/span>|<span id=\"domande\">$questions<\/span>|" "$file_readme"
# Update date
echo "$(stat -c '%y' $file_domande | cut -f1 -d' ')"
#sed -i "s|<span id=\"domande\">[0-9]*<\/span>|<span id=\"domande\">$questions<\/span>|" "$file_readme"
date=$(curl -s "https://api.github.com/repos/mikyll/ROQuiz/commits?path=Domande.txt&page=1&per_page=1" | grep -m 1 \"date\" | xargs | cut -f2 -d' ' | cut -f1 -d'T')
echo $date
#sed -i "s|<span id=\"domande\">[0-9]*<\/span>|<span id=\"ultima_modifica\">$date<\/span>|" "$file_readme"
# Check if there are changes
if [[ -n $(git status -s) ]]
Expand Down

0 comments on commit d07ecfd

Please sign in to comment.