diff --git a/action.yml b/action.yml index 1aa5456..b8f2096 100644 --- a/action.yml +++ b/action.yml @@ -75,9 +75,9 @@ runs: if [[ "${{ github.ref }}" != "refs/tags/"* ]]; then if [[ ${{ github.event_name }} == *"pull_request"* ]]; then if [[ -z "$GITHUB_OUTPUT" ]]; then - echo "::set-output name=current_branch::${{ steps.branch.outputs.head_ref }}" + echo "::set-output name=current_branch::${{ steps.branch.outputs.head_ref_branch }}" else - echo "current_branch=${{ steps.branch.outputs.head_ref }}" >> "$GITHUB_OUTPUT" + echo "current_branch=${{ steps.branch.outputs.head_ref_branch }}" >> "$GITHUB_OUTPUT" fi else if [[ -z "$GITHUB_OUTPUT" ]]; then