I'm using this script to generate a file with commit dates
cat .github/workflows/header.md > "COVID 19/fechas.md"
git ls-tree -r --name-only HEAD COVID\ 19/*.csv | while read filename; do
date=$(git log -1 --format="%aD" -- "$filename")
echo "| $date | $filename |" >> "COVID 19/fechas.md"
done
git config --global user.email "jjmerelo@gmail.com"
git config --global user.name "FechaActionBot"
git add "COVID 19/fechas.md"
git commit -m "Fichero de fechas generado"
In this GitHub Action, which checks out the code and runs above as a script.
No matter what I use as format (commiter or author date), I get the same result, which shows the same date (the current one) for all files.