Skip to content

Commit

Permalink
Fix/publish release (#1001)
Browse files Browse the repository at this point in the history
#### What this PR does / why we need it

Latest releases weren't published for all cases:

-
https://github.com/open-component-model/ocm/actions/runs/11404973209/job/31735340051
relies on release notes being present in git-repo
-
https://github.com/open-component-model/ocm/actions/runs/11404973209/job/31735340433
version is not set properly
  • Loading branch information
hilmarf authored Oct 22, 2024
1 parent 50cb639 commit a6291d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
}
if (-not ([string]::IsNullOrEmpty($repository_version))) {
$repository_version = "$repository_version" -replace 'v'
echo "RELEASE_VERSION=($repository_version -replace 'v')" | Out-File $env:GITHUB_ENV
echo "RELEASE_VERSION=$repository_version" | Out-File $env:GITHUB_ENV
exit 0
}
Write-Host "Version not provided"
Expand Down
2 changes: 1 addition & 1 deletion hack/chocolatey/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $description = $description -replace '<', '&lt;' # used in code blocks and examp
$description = $description -replace '>', '&gt;' # used in code blocks and examples
$description += "`nContinue reading on [ocm.software / cli-reference](https://ocm.software/docs/cli-reference/)"
# release notes do hopefully not contain xml tags
$releaseNotes = Get-Content -Path "docs\releasenotes\v$latestVersion.md" -Raw
$releaseNotes = $response.body
$releaseNotes = $releaseNotes -replace '\(#(\d+)\)', '([$1](https://github.com/open-component-model/ocm/pull/$1))'
$releaseNotes = $releaseNotes -replace '<summary>.*</summary>', ''
$releaseNotes = $releaseNotes -replace '</?details>', ''
Expand Down

0 comments on commit a6291d3

Please sign in to comment.