Skip to content

Commit 7c93be2

Browse files
Replace placeholder version with tag-dev-sha for latest trunk releases (#133)
1 parent e238c36 commit 7c93be2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

+11
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ jobs:
1212
steps:
1313
- name: Checkout code
1414
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Get most recent tag
19+
id: get_tag
20+
uses: WyriHaximus/github-action-get-previous-tag@v1
21+
with:
22+
fallback: 1.0.0
23+
24+
- name: Update version to latest trunk commit
25+
run: "find . -type f -exec sed -i 's/0.0.0-placeholder/${{ steps.get_tag.outputs.tag }}-dev-${{ github.sha }}/g' {} +"
1526

1627
- name: Setup Node.js
1728
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)