diff --git a/action.yml b/action.yml index 7d4b78b..06f89be 100644 --- a/action.yml +++ b/action.yml @@ -48,7 +48,8 @@ runs: id: get_head_branch working-directory: ${{ inputs.working_directory }} run: | - head_branch="{git for-each-ref --format="%(upstream:short)" $(git symbolic-ref -q HEAD)}" + head_branch_ref="{git symbolic-ref -q HEAD}" + head_branch="$(git for-each-ref --format="%(upstream:short)" $head_branch_ref)" echo "Current Head Branch: $head_branch" echo "head_branch=$current_branch" >> "$GITHUB_OUTPUT" shell: bash