@@ -106,10 +106,13 @@ jobs:
106106 - name : Insert notes into cumulative changelog (post release)
107107 if : inputs.phase == 'post'
108108 run : |
109- echo "# ${{ inputs.version } } - $(date +'%d/%m/%Y')" > tmpchangelog
110- echo '${{ inputs.changelog }}' >> tmpchangelog
109+ echo "# ${VERSION } - $(date +'%d/%m/%Y')" > tmpchangelog
110+ echo "${CHANGELOG}" >> tmpchangelog
111111 cat CHANGELOG.md >> tmpchangelog
112112 mv tmpchangelog CHANGELOG.md
113+ env :
114+ VERSION : ${{ inputs.version }}
115+ CHANGELOG : ${{ inputs.changelog }}
113116
114117 - name : Clear next release changelog (post release)
115118 if : inputs.phase == 'post'
@@ -119,10 +122,14 @@ jobs:
119122 - name : Push the ${{ inputs.phase }} release branch
120123 run : |
121124 git add --all
122- git commit -m "${{ inputs.phase } } release: elastic-otel-java v${{ env.RELEASE_VERSION }}"
125+ git commit -m "${PHASE } release: elastic-otel-java v${{ env.RELEASE_VERSION }}"
123126 git push origin ${{ env.BRANCH_NAME }}
127+ env :
128+ PHASE : ${{ inputs.phase }}
124129
125130 - name : Create the ${{ inputs.phase }} release PR
126- run : gh pr create --title="${{ inputs.pr_title }} " --base main --head ${{ env.BRANCH_NAME }} -b "${{ inputs.pr_body } }"
131+ run : gh pr create --title="${PR_TITLE} " --base main --head ${{ env.BRANCH_NAME }} -b "${PR_BODY }"
127132 env :
128133 GH_TOKEN : ${{ steps.get_token.outputs.token }}
134+ PR_TITLE : ${{ inputs.pr_title }}
135+ PR_BODY : ${{ inputs.pr_body }}
0 commit comments