diff --git a/Makefile b/Makefile index 46475e8..5f9caa5 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ phony: help # Release tag for the action -VERSION := v0.5.2 +VERSION := v0.5.3 # GitHub Actions bogus variables GITHUB_REF ?= refs/heads/null diff --git a/README.md b/README.md index 4138ce9..89c1975 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Features: ```yaml - name: Run the Action - uses: devops-infra/action-pull-request@v0.5.2 + uses: devops-infra/action-pull-request@v0.5.3 with: github_token: ${{ secrets.GITHUB_TOKEN }} source_branch: development @@ -119,7 +119,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - name: Create pull request - uses: devops-infra/action-pull-request@v0.5.2 + uses: devops-infra/action-pull-request@v0.5.3 with: github_token: ${{ secrets.GITHUB_TOKEN }} title: Automatic pull request @@ -141,7 +141,7 @@ jobs: fetch-depth: 0 - name: Run the Action if: startsWith(github.ref, 'refs/heads/feature') - uses: devops-infra/action-pull-request@v0.5.2 + uses: devops-infra/action-pull-request@v0.5.3 with: github_token: ${{ secrets.GITHUB_TOKEN }} title: ${{ github.event.commits[0].message }} diff --git a/action.yml b/action.yml index 558a106..1417a69 100644 --- a/action.yml +++ b/action.yml @@ -69,7 +69,7 @@ outputs: description: Pull request URL. runs: using: docker - image: docker://devopsinfra/action-pull-request:v0.5.2 + image: docker://devopsinfra/action-pull-request:v0.5.3 env: GITHUB_TOKEN: ${{ inputs.github_token }} branding: diff --git a/entrypoint.sh b/entrypoint.sh index 66ae8bd..cdd919f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -129,7 +129,7 @@ if [[ "${INPUT_GET_DIFF}" == "true" ]]; then TEMPLATE=$(echo -e "${TEMPLATE}" | sed ':a;N;$!ba; s##\n'"${GIT_DIFF}"'\n#g') TEMPLATE=$(echo -e "${TEMPLATE}" | sed ':a;N;$!ba; s#.*#\n'"${GIT_DIFF}"'\n#g') fi -TEMPLATE=$(echo -e "${TEMPLATE}" | sed 's|\^HaSz\^|#|g' | sed ':a;N;$!ba; s|\^NowALiNiA\^|\n|g') +TEMPLATE=$(echo -e "${TEMPLATE}" | sed 's|\^HaSz\^|#|g' | sed '1h;2,$H;$!d;g; s|\^NowALiNiA\^|\n|g') if [[ -z "${PR_NUMBER}" ]]; then echo -e "\nSetting all arguments..."