From bc0bc27cf892a48f588914b58321b8ec5b5a78d7 Mon Sep 17 00:00:00 2001 From: Umair Jibran Date: Sat, 20 May 2023 15:08:28 +0500 Subject: [PATCH] FIX: escape backtics --- action.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index d4b5da5..d71ea76 100644 --- a/action.yml +++ b/action.yml @@ -28,22 +28,22 @@ runs: git branch -m $BRANCH echo "SETTING UP GIT REMOTE" git remote add origin https://${{ github.repository_owner }}:${{ env.GITHUB_PAT }}@github.com/${{ github.repository }}.git - echo "FETCHING LATEST CODE AT `$BRANCH`" + echo "FETCHING LATEST CODE AT \`$BRANCH\`" git fetch origin $BRANCH - echo "CHECKING OUT `$BRANCH`" + echo "CHECKING OUT \`$BRANCH\`" git checkout $BRANCH git pull if ! git rev-parse --verify ${{ env.TARGET_BRANCH }} >/dev/null 2>&1; then - echo "CREATING `${{ env.TARGET_BRANCH }}`" + echo "CREATING \`${{ env.TARGET_BRANCH }}\`" git branch ${{ env.TARGET_BRANCH }} - echo "PUSHING `${{ env.TARGET_BRANCH }}`" + echo "PUSHING \`${{ env.TARGET_BRANCH }}\`" git push --set-upstream origin ${{ env.TARGET_BRANCH }} fi - echo "CHECKING OUT `${{ env.TARGET_BRANCH }}`" + echo "CHECKING OUT \`${{ env.TARGET_BRANCH }}\`" git checkout ${{ env.TARGET_BRANCH }} echo "PULLING CHANGES IF ANY" git pull - echo "MERGING PR IN `${{ env.TARGET_BRANCH }}`" + echo "MERGING PR IN \`${{ env.TARGET_BRANCH }}\`" git merge --no-ff origin/${{ github.event.pull_request.head.ref }} -m "Merge pull request into ${{ env.TARGET_BRANCH }}" echo "PUSHING CHANGES TO ${{ env.TARGET_BRANCH }}" git push origin ${{ env.TARGET_BRANCH }}