Skip to content

Commit

Permalink
Add -i flag to sed for updating in-place (#47)
Browse files Browse the repository at this point in the history
This PR adds the missing `-i` flag for updating the `helpers.tpl` file
in-place.
  • Loading branch information
vgrassia authored Nov 6, 2023
1 parent 5c96dcd commit 1d7a375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ jobs:
- name: Update Core Version
env:
VERSION: ${{ needs.setup.outputs.core_version }}
run: sed '/define "bitwarden.coreVersionDefault"/!b;n;c{{- "'$VERSION'" -}}' helpers.tpl
run: sed -i '/define "bitwarden.coreVersionDefault"/!b;n;c{{- "'$VERSION'" -}}' helpers.tpl
working-directory: charts/self-host/templates

- name: Update Web Version
env:
VERSION: ${{ needs.setup.outputs.web_version }}
run: sed '/define "bitwarden.webVersionDefault"/!b;n;c{{- "'$VERSION'" -}}' helpers.tpl
run: sed -i '/define "bitwarden.webVersionDefault"/!b;n;c{{- "'$VERSION'" -}}' helpers.tpl
working-directory: charts/self-host/templates

- name: Commit updated files
Expand Down

0 comments on commit 1d7a375

Please sign in to comment.