Skip to content

Commit

Permalink
fix(ci): replace only first semver in Taskfile
Browse files Browse the repository at this point in the history
- as it was until now, the 'sed' replaces all occurances of SEMVER
- this way, only the first global SEMVER will be replaced

Signed-off-by: AtomicFS <[email protected]>
  • Loading branch information
AtomicFS committed Nov 22, 2024
1 parent 6427558 commit bd1063d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release-prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
sed -i -E 's/const firmwareActionVersion = .*/const firmwareActionVersion = "${{ steps.semver.outputs.next }}"/g' action/main.go
- name: Update Taskfile.yml
run: |
sed -i -E "s/SEMVER: .*/SEMVER: '${{ steps.semver.outputs.next }}'/g" Taskfile.yml
sed -i -E "s/^ SEMVER: .*/ SEMVER: '${{ steps.semver.outputs.next }}'/g" Taskfile.yml
- name: Update action.yml
run: |
sed -i -E "s/version=v[a-zA-Z0-9\.]+/version=${{ steps.semver.outputs.next }}/g" action.yml
Expand Down

0 comments on commit bd1063d

Please sign in to comment.