Hi!
I want to share my solution, initially, I was using the example script provided by Apple, but I encountered some problems. I think the problem is the ! (exclamation mark) in the example script.
Here is the revised script that worked for me:
if [[ -d "$CI_APP_STORE_SIGNED_APP_PATH" ]]; then
git fetch --deepen 1 && git log -1 --pretty=format:"%s" | cat > ../TestFlight/WhatToTest.en-US.txt
fi