Files are not updated after the Jenkins Build success triggered by the GitHub Actions as expected
After removing the following command git reset –hard origin/${GITHUB_REF#refs/heads/} || { echo “git reset failed”; exit 1; } from the trigger-jenkins-build.yml file, now the files old_build_number.txt and new_build_number.txt files are updated.