Skip to content

Commit 222434a

Browse files
author
Ron
committed
chore: replace sed by bash variable substitution
1 parent fea46d1 commit 222434a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ jobs:
143143
GH_TOKEN: ${{ github.token }}
144144
run: |
145145
UPDATED_NOTES=$(gh release view ${{ github.ref_name }} --json body -q '.body')
146-
UPDATED_NOTES=$(echo "$UPDATED_NOTES" | sed "s/{{ amp-devcontainer-${{ matrix.flavor }}-version }}/${{ github.ref_name }}/g")
147-
UPDATED_NOTES=$(echo "$UPDATED_NOTES" | sed "s/{{ amp-devcontainer-${{ matrix.flavor }}-sha }}/${{ steps.build-and-push.outputs.digest }}/g")
146+
UPDATED_NOTES=${UPDATED_NOTES//'{{ amp-devcontainer-${{ matrix.flavor }}-version }}'/'${{ github.ref_name }}'}
147+
UPDATED_NOTES=${UPDATED_NOTES//'{{ amp-devcontainer-${{ matrix.flavor }}-sha }}'/'${{ steps.build-and-push.outputs.digest }}'}
148148
gh release edit ${{ github.ref_name }} --notes "${UPDATED_NOTES}"
149149
acceptance-test:
150150
if: github.event_name == 'pull_request'

0 commit comments

Comments
 (0)