Skip to content

Commit 2a3989f

Browse files
Replace Version using sed instead of yq
yq does not preserve formatting with in place writing, see mikefarah/yq#465
1 parent b5124cf commit 2a3989f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/update-antora-ui-spring.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,11 @@ jobs:
3333
shell: bash
3434
env:
3535
GH_TOKEN: ${{ secrets.token }}
36-
- name: Replace Version
37-
uses: mikefarah/[email protected]
36+
- name: Replace Current with Latest
3837
id: replace
3938
if: ${{ steps.current.outputs.result != steps.latest.outputs.latest_ui_bundle_url }}
40-
with:
41-
cmd: yq -i '.ui.bundle.url = "${{ steps.latest.outputs.latest_ui_bundle_url }}"' antora-playbook.yml
39+
run: |
40+
sed -i '' -e 's@${{ steps.current.outputs.result }}@${{ steps.latest.outputs.latest_ui_bundle_url }}@g' antora-playbook.yml
4241
- name: Create Pull Request
4342
uses: peter-evans/create-pull-request@v6
4443
with:

0 commit comments

Comments
 (0)