Skip to content

Commit

Permalink
FIX: escape backtics
Browse files Browse the repository at this point in the history
  • Loading branch information
UmairJibran committed May 20, 2023
1 parent 8aa75e6 commit bc0bc27
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit bc0bc27

Please sign in to comment.