Update test.yml

This commit is contained in:
cdozdil
2025-01-21 16:08:09 +03:00
committed by GitHub
parent bb90b24380
commit 39e2c3a2af
+4 -15
View File
@@ -140,19 +140,8 @@ jobs:
run: |
Write-Output "Fetching commits from the last 24 hours..."
$location = Get-Location
Write-Output "Folder: $location`n"
$datetime = Get-Date
Write-Output "Datetime: $datetime`n"
$gitVersion = git --version
Write-Output "Git Version: $gitVersion`n"
# Get commit messages excluding .yml file commits
$commits = git log --since="1 day ago" --pretty=format:"%h %s (%an)" --abbrev-commit --grep=".yml" --invert-grep
Write-Output $commits
$commits = git log --since="1 day ago" --pretty=format:"%h %s (%an)" --abbrev-commit --grep=".yml" --invert-grep --no-merges --first-parent
$commits = $commits -split "`n"
@@ -169,9 +158,9 @@ jobs:
# Generate release notes
$releaseNotes = "### Changes in the Last 24 Hours`n`n$formattedCommits"
Write-Output "$releaseNotes"
$ReleaseTag = "nightly"
Write-Output "Updating existing release: $ReleaseTag"
gh release edit $ReleaseTag --notes "$ReleaseNotes"
gh release edit $ReleaseTag --notes "$ReleaseNotes"