Update action.yml
This commit is contained in:
parent
601414734b
commit
033edba65c
1 changed files with 4 additions and 2 deletions
|
@ -54,8 +54,10 @@ runs:
|
||||||
steps:
|
steps:
|
||||||
- name: Git push and commit
|
- name: Git push and commit
|
||||||
run: |
|
run: |
|
||||||
CURRENT_BRANCH=${GITHUB_REF##*/}
|
CURRENT_BRANCH=${GITHUB_REF}
|
||||||
echo $CURRENT_BRANCH
|
case $CURRENT_BRANCH in "refs/heads/"*)
|
||||||
|
CURRENT_BRANCH=$(echo "$CURRENT_BRANCH" | sed "s@refs/heads/@@")
|
||||||
|
esac
|
||||||
TARGET_BRANCH=${{ inputs.target_branch }}
|
TARGET_BRANCH=${{ inputs.target_branch }}
|
||||||
case $TARGET_BRANCH in "refs/heads/"*)
|
case $TARGET_BRANCH in "refs/heads/"*)
|
||||||
TARGET_BRANCH=$(echo "$TARGET_BRANCH" | sed "s@refs/heads/@@")
|
TARGET_BRANCH=$(echo "$TARGET_BRANCH" | sed "s@refs/heads/@@")
|
||||||
|
|
Loading…
Add table
Reference in a new issue