Skip to content

Commit f03c217

Browse files
committed
Update sed command
1 parent 604c4f8 commit f03c217

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/publish-latest-plugin-zip.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ jobs:
2525
semver_only: true
2626
initial_version: 0.0.0
2727

28+
- name: Update version to latest trunk commit
29+
run: |
30+
grep -rl "0.0.0-placeholder" . | grep -v "\.git" | xargs -I {} sed -i 's/0.0.0-placeholder/${{ steps.get_tag.outputs.tag }}-dev-${{ github.sha }}/g' {}
31+
2832
- name: Install dependencies
2933
run: npm ci
3034

31-
- name: Update version to latest trunk commit
32-
run: "find . -type f -exec sed -i 's/0.0.0-placeholder/${{ steps.get_tag.outputs.tag }}-${{ github.sha }}/g' {} +"
33-
3435
- name: Build and create plugin zip
3536
run: npm run plugin-zip
3637

0 commit comments

Comments
 (0)