Skip to content

Commit d89fef8

Browse files
committed
v1.0.4-test
1 parent d4ff046 commit d89fef8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

action.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,13 @@ runs:
7474
- id: get-pr-body
7575
run: |
7676
body=$(cat pr-body.txt)
77-
echo "pr_body<<EOF" >> $GITHUB_OUTPUT
78-
echo "$body"
79-
echo "EOF"
77+
body="${body//'%'/'%25'}"
78+
body="${body//$'\n'/'%0A'}"
79+
body="${body//$'\r'/'%0D'}"
80+
echo ::set-output name=body::$body
81+
82+
# body=$(cat pr-body.txt)
83+
# echo "pr_body<<EOF" >> $GITHUB_OUTPUT
8084
# body="${body//'%'/'%25'}"
8185
# body="${body//$'\n'/'%0A'}"
8286
# body="${body//$'\r'/'%0D'}"
@@ -94,7 +98,7 @@ runs:
9498
commit-message: Update documentation
9599
title: "Update OpenAPI Spec"
96100
branch: autogenerated-docs-${{ github.run_id }}
97-
body: ${{ steps.get-pr-body.outputs.pr_body }}
101+
body: ${{ steps.get-pr-body.outputs.body}}
98102
base: ${{ inputs.base_branch }}
99103

100104
# TODO: finish the autodoc workflow

0 commit comments

Comments
 (0)