From 033edba65c4c3942e54861d51555765249881c3f Mon Sep 17 00:00:00 2001 From: Guillaume Falourd Date: Thu, 18 Nov 2021 11:52:48 -0300 Subject: [PATCH] Update action.yml --- action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 34db279..6f39515 100644 --- a/action.yml +++ b/action.yml @@ -54,8 +54,10 @@ runs: steps: - name: Git push and commit run: | - CURRENT_BRANCH=${GITHUB_REF##*/} - echo $CURRENT_BRANCH + CURRENT_BRANCH=${GITHUB_REF} + case $CURRENT_BRANCH in "refs/heads/"*) + CURRENT_BRANCH=$(echo "$CURRENT_BRANCH" | sed "s@refs/heads/@@") + esac TARGET_BRANCH=${{ inputs.target_branch }} case $TARGET_BRANCH in "refs/heads/"*) TARGET_BRANCH=$(echo "$TARGET_BRANCH" | sed "s@refs/heads/@@")