diff --git a/update-workflows.sh b/update-workflows.sh index 09e33c9..c3323ff 100755 --- a/update-workflows.sh +++ b/update-workflows.sh @@ -152,7 +152,7 @@ do # add a reference to this repository which holds the workflow commit_sha=$(git rev-parse HEAD) - tag=$(git describe --tags --exact-match 2>/dev/null || true) + tag=$(git describe --tags "$(git rev-list --tags --max-count=1)" || true) file_to_include="uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/$base_name@$commit_sha # $tag"