0
0
This commit is contained in:
Marco Maatz 2025-06-23 09:49:12 +02:00
parent e6c19a2ec2
commit bee88de2ef

View File

@ -32,7 +32,12 @@ jobs:
curl -O -R $downloadUrl curl -O -R $downloadUrl
# Get the file creation date and save it into a variable # Get the file creation date and save it into a variable
fileCreatedDate=$(powershell -command "(Get-Item '$downloadFileName').CreationTime.ToString('dd.MM.yyyyTHH:mm:ss')") for %%F in ("$downloadFileName") do (
for /f "tokens=1-3 delims=/: " %%a in ("%%~tF") do (
fileCreatedDate=%%c-%%a-%%bT%%~tF
)
)
echo "File created date: $fileCreatedDate" echo "File created date: $fileCreatedDate"
if [ "$downloadFileName" != "$uploadFileName" ]; then if [ "$downloadFileName" != "$uploadFileName" ]; then