Skip to content

Commit 41ffaf2

Browse files
committed
add output
1 parent 1f3f915 commit 41ffaf2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,17 @@ jobs:
2626
shell: pwsh
2727
run: |
2828
$date = Get-Date -Format "yy.MM.dd"
29+
Write-Host "Date: $date"
2930
$tags = git tag -l "$date.*"
31+
Write-Host "Tags: $($tags -join ', ')"
3032
if ($tags) {
3133
$last = $tags | ForEach-Object { ($_ -split '\.')[-1] } | Sort-Object {[int]$_} -Descending | Select-Object -First 1
3234
$next = [int]$last + 1
3335
} else {
3436
$next = 1
3537
}
3638
$version = "$date.$next"
39+
Write-Host "Generated version: $version"
3740
echo version=$version >> $env:GITHUB_OUTPUT
3841
3942
- name: Publish (framework-dependent, single file)

0 commit comments

Comments
 (0)