diff --git a/.github/composite/update-git-dependency/action.yml b/.github/composite/update-git-dependency/action.yml index e6771b14f..3aaa40327 100644 --- a/.github/composite/update-git-dependency/action.yml +++ b/.github/composite/update-git-dependency/action.yml @@ -41,8 +41,8 @@ runs: echo "DEPENDENCY_VERSION=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" elif [[ ${{inputs.update-method}} == "latest-tag" ]]; then git fetch --tags - git checkout $(git tag --sort=-v:refname | grep -E ${{inputs.tag-regex}} | head -n 1) - echo "DEPENDENCY_VERSION=$(git tag --sort=-v:refname | grep -E ${{inputs.tag-regex}} | head -n 1)" >> "$GITHUB_OUTPUT" + git checkout $(git tag --sort=-v:refname | grep -E "${{inputs.tag-regex}}" | head -n 1) + echo "DEPENDENCY_VERSION=$(git tag --sort=-v:refname | grep -E "${{inputs.tag-regex}}" | head -n 1)" >> "$GITHUB_OUTPUT" fi cd $homePath - name: Create Pull Request