WhatToTest.da.text file from last git tag

Hi

I'm trying to automatically create a what's new file based on the commits since the last tag

However I keep on getting an error message in the logs.

It off course works when I run it locally

Any ideas

git pull
git fetch origin --all

lastTag=$(git describe --tags --abbrev=0)

echo $lastTag

log=$(git log --pretty=format:"%s" "$lastTag..HEAD")

echo $log

echo $log > "$CI_WORKSPACE/TestFlight/WhatToTest.en-US.txt"

The error is:

fatal: No tags can describe 'cdae20770802a7d6b7e290c21bc2580e62c56d92'. Try --always, or create some tags.