From b40aa9fb5789751da26b476b7d5601147d704292 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Wed, 9 Nov 2022 08:03:25 +0100 Subject: [PATCH] Improve branch naming. --- action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 4bb7b83..513cf0a 100644 --- a/action.yml +++ b/action.yml @@ -271,15 +271,15 @@ runs: # Create a branch for the current HEAD, which happens to be a merge commit git checkout -b __action_branch_name - # Check out the target branch and name it - git checkout -b ${{ + # Name the target branch + git branch ${{ github.event.pull_request.base.ref }} --track origin/${{ github.event.pull_request.base.ref }} - # Check out the merge commit - git checkout __action_branch_name + # Show branch information + git branch -vv shell: bash working-directory: >- .tmp-ansible-collection-checkout