Skip to content

Commit

Permalink
fix param issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Freezor committed Jun 16, 2024
1 parent ac453c0 commit 67b590e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/draft-prerelease-on-pushed-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ jobs:
- name: Get the newest tag
id: get_latest_tag
run: |
$stableTags = git tag --list "*${BRANCH_SUFFIX}*" --sort=-creatordate
$stableTags = git tag --list "*${BRANCH_SUFFIX}*" --sort=creatordate
if ($stableTags) {
$newestStableTag = $stableTags | Select-Object -First 1
echo "from_tag=$newestStableTag" >> $env:GITHUB_OUTPUT
Write-Host "Latest found tag is $newestStableTag"
} else {
Write-Host "No stable tags found, fetching the latest tag."
$latestTag = git tag --list --sort=-creatordate | Select-Object -First 1
$latestTag = git tag --list --sort=creatordate | Select-Object -First 1
if ($latestTag) {
echo "from_tag=$latestTag" >> $env:GITHUB_OUTPUT
Write-Host "Latest found tag is $latestTag"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ jobs:
- name: Get the newest tag
id: get_latest_tag
run: |
$stableTags = git tag --list "*${BRANCH_SUFFIX}*" --sort=-creatordate
$stableTags = git tag --list "*${BRANCH_SUFFIX}*" --sort=creatordate
if ($stableTags) {
$newestStableTag = $stableTags | Select-Object -First 1
echo "from_tag=$newestStableTag" >> $env:GITHUB_OUTPUT
Write-Host "Latest found tag is $newestStableTag"
} else {
Write-Host "No stable tags found, fetching the latest tag."
$latestTag = git tag --list --sort=-creatordate | Select-Object -First 1
$latestTag = git tag --list --sort=creatordate | Select-Object -First 1
if ($latestTag) {
echo "from_tag=$latestTag" >> $env:GITHUB_OUTPUT
Write-Host "Latest found tag is $latestTag"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prerelease-on-merge-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
id: get_latest_tag
run: |
git fetch --all
stableTags=$(git tag --list "*${BRANCH_SUFFIX}*" --sort=-createordate)
stableTags=$(git tag --list "*${BRANCH_SUFFIX}*" --sort=createordate)
if [ -n "$stableTags" ]; then
newestStableTag=$(echo "$stableTags" | head -n 1)
echo "latest_tag=$newestStableTag" >> $GITHUB_ENV
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
- name: Get the newest tag
id: get_latest_tag
run: |
$stableTags = git tag --list "*${BRANCH_SUFFIX}*" --sort=-creatordate
$stableTags = git tag --list "*${BRANCH_SUFFIX}*" --sort=creatordate
if ($stableTags) {
$newestStableTag = $stableTags | Select-Object -First 1
echo "from_tag=$newestStableTag" >> $env:GITHUB_OUTPUT
Expand Down

0 comments on commit 67b590e

Please sign in to comment.