mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-05-03 08:11:09 +00:00
Update test.yml
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user