fix grep error
This commit is contained in:
parent
47caa2e43b
commit
290b7e0b84
1 changed files with 2 additions and 2 deletions
4
.github/workflows/auto-release.yml
vendored
4
.github/workflows/auto-release.yml
vendored
|
|
@ -20,7 +20,7 @@ jobs:
|
|||
id: get_latest_tag
|
||||
run: |
|
||||
# Get the latest tag ending in -vscode or default to v1.1.0-vscode if none exists
|
||||
latest_tag=$(git tag --sort=-creatordate | grep -E "-vscode$" | head -n 1 || echo "v1.1.0-vscode")
|
||||
latest_tag=$(git tag --sort=-creatordate | grep "-vscode$" || echo "v1.1.0-vscode")
|
||||
echo "Latest tag: $latest_tag"
|
||||
echo "LATEST_TAG=$latest_tag" >> $GITHUB_ENV
|
||||
|
||||
|
|
@ -66,7 +66,7 @@ jobs:
|
|||
id: get_latest_tag
|
||||
run: |
|
||||
# Get the latest tag ending in -jetbrains or default to v1.1.0-jetbrains if none exists
|
||||
latest_tag=$(git tag --sort=-creatordate | grep -E "-jetbrains$" | head -n 1 || echo "v1.1.0-jetbrains")
|
||||
latest_tag=$(git tag --sort=-creatordate | grep "-jetbrains$" || echo "v1.1.0-jetbrains")
|
||||
echo "Latest tag: $latest_tag"
|
||||
echo "LATEST_TAG=$latest_tag" >> $GITHUB_ENV
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue