Skip to content

Commit d2b6e10

Browse files
Merge pull request #109 from devops-infra/bugfix/newline
Fix sed gobbling for a newline replacement
2 parents 68ca50e + 5121a09 commit d2b6e10

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
phony: help
33

44
# Release tag for the action
5-
VERSION := v0.5.2
5+
VERSION := v0.5.3
66

77
# GitHub Actions bogus variables
88
GITHUB_REF ?= refs/heads/null

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Features:
3737

3838
```yaml
3939
- name: Run the Action
40-
uses: devops-infra/[email protected].2
40+
uses: devops-infra/[email protected].3
4141
with:
4242
github_token: ${{ secrets.GITHUB_TOKEN }}
4343
source_branch: development
@@ -119,7 +119,7 @@ jobs:
119119
- name: Checkout repository
120120
uses: actions/checkout@v2
121121
- name: Create pull request
122-
uses: devops-infra/[email protected].2
122+
uses: devops-infra/[email protected].3
123123
with:
124124
github_token: ${{ secrets.GITHUB_TOKEN }}
125125
title: Automatic pull request
@@ -141,7 +141,7 @@ jobs:
141141
fetch-depth: 0
142142
- name: Run the Action
143143
if: startsWith(github.ref, 'refs/heads/feature')
144-
uses: devops-infra/[email protected].2
144+
uses: devops-infra/[email protected].3
145145
with:
146146
github_token: ${{ secrets.GITHUB_TOKEN }}
147147
title: ${{ github.event.commits[0].message }}

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ outputs:
6969
description: Pull request URL.
7070
runs:
7171
using: docker
72-
image: docker://devopsinfra/action-pull-request:v0.5.2
72+
image: docker://devopsinfra/action-pull-request:v0.5.3
7373
env:
7474
GITHUB_TOKEN: ${{ inputs.github_token }}
7575
branding:

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ if [[ "${INPUT_GET_DIFF}" == "true" ]]; then
129129
TEMPLATE=$(echo -e "${TEMPLATE}" | sed ':a;N;$!ba; s#<!-- Diff files -->#<!-- Diff files - START -->\n'"${GIT_DIFF}"'\n<!-- Diff files - END -->#g')
130130
TEMPLATE=$(echo -e "${TEMPLATE}" | sed ':a;N;$!ba; s#<!-- Diff files - START -->.*<!-- Diff files - END -->#<!-- Diff files - START -->\n'"${GIT_DIFF}"'\n<!-- Diff files - END -->#g')
131131
fi
132-
TEMPLATE=$(echo -e "${TEMPLATE}" | sed 's|\^HaSz\^|#|g' | sed ':a;N;$!ba; s|\^NowALiNiA\^|\n|g')
132+
TEMPLATE=$(echo -e "${TEMPLATE}" | sed 's|\^HaSz\^|#|g' | sed '1h;2,$H;$!d;g; s|\^NowALiNiA\^|\n|g')
133133

134134
if [[ -z "${PR_NUMBER}" ]]; then
135135
echo -e "\nSetting all arguments..."

0 commit comments

Comments
 (0)