From 5f659c1817ae906512f5008c83586947f6dce6c0 Mon Sep 17 00:00:00 2001 From: GuillaumeFalourd Date: Thu, 6 Jan 2022 22:04:04 -0300 Subject: [PATCH] update git push to remote action Signed-off-by: GuillaumeFalourd --- action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index ddb66cf..39e9cba 100644 --- a/action.yml +++ b/action.yml @@ -53,8 +53,9 @@ runs: using: "composite" steps: - name: Git push and commit origin - if: ${{ inputs.remote_repository }} == 'origin' + if: ${{ inputs.remote_repository == 'origin' }} run: | + echo "##### Git Push and Commit ORIGIN #####" CURRENT_BRANCH=${GITHUB_REF} case $CURRENT_BRANCH in "refs/heads/"*) CURRENT_BRANCH=$(echo "$CURRENT_BRANCH" | sed "s@refs/heads/@@") @@ -101,8 +102,9 @@ runs: shell: bash - name: Git push and commit remote - if: ${{ inputs.remote_repository }} != 'origin' + if: ${{ inputs.remote_repository != 'origin' }} run: | + echo "##### Git Push and Commit REMOTE #####" if [ -z "${{ inputs.access_token }}" ]; then echo "WARNING: The access_token input is mandatory to push files to another repository." exit 1