Skip to content

Commit

Permalink
Replace placeholder version with tag-dev-sha for latest trunk releases (
Browse files Browse the repository at this point in the history
  • Loading branch information
candy02058912 authored Sep 6, 2024
1 parent e238c36 commit 7c93be2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/publish-latest-plugin-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get most recent tag
id: get_tag
uses: WyriHaximus/github-action-get-previous-tag@v1
with:
fallback: 1.0.0

- name: Update version to latest trunk commit
run: "find . -type f -exec sed -i 's/0.0.0-placeholder/${{ steps.get_tag.outputs.tag }}-dev-${{ github.sha }}/g' {} +"

- name: Setup Node.js
uses: actions/setup-node@v4
Expand Down

0 comments on commit 7c93be2

Please sign in to comment.