Skip to content

Commit

Permalink
Merge pull request #109 from devops-infra/bugfix/newline
Browse files Browse the repository at this point in the history
Fix sed gobbling for a newline replacement
  • Loading branch information
ChristophShyper authored Nov 10, 2022
2 parents 68ca50e + 5121a09 commit d2b6e10
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Features:

```yaml
- name: Run the Action
uses: devops-infra/[email protected].2
uses: devops-infra/[email protected].3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_branch: development
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
- name: Create pull request
uses: devops-infra/[email protected].2
uses: devops-infra/[email protected].3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
title: Automatic pull request
Expand All @@ -141,7 +141,7 @@ jobs:
fetch-depth: 0
- name: Run the Action
if: startsWith(github.ref, 'refs/heads/feature')
uses: devops-infra/[email protected].2
uses: devops-infra/[email protected].3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
title: ${{ github.event.commits[0].message }}
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ if [[ "${INPUT_GET_DIFF}" == "true" ]]; then
TEMPLATE=$(echo -e "${TEMPLATE}" | sed ':a;N;$!ba; s#<!-- Diff files -->#<!-- Diff files - START -->\n'"${GIT_DIFF}"'\n<!-- Diff files - END -->#g')
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')
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..."
Expand Down

0 comments on commit d2b6e10

Please sign in to comment.