-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add links to core and contrib to Github releases on releases from this repository #498
Comments
Hello @mx-psi , @jpkrohling if this is still unattended, I'd love to work on it! |
@Enzujp assigned to you! |
@mx-psi Thank you, I'd get on it ! |
hello @mx-psi , while working on this, I discovered we can only automate using GoReleaser Pro, the feature that allows us link the change logs for core and contrib require the GoReleaser Pro and I don't have access to that. Is there perhaps another way to go about this ? |
Aw shucks, I was looking forward to working on this @TylerHelmuth |
@Enzujp We do have goreleaser Pro. An alternative is to use the CLI tool from Github, which has the |
@mx-psi , Thank you very much I'd get on it. |
Hello there @mx-psi, I finally got this to work as expected, it required a .goreleaser file in the root of the project. It does print the custom message and link to change logs from core and contrib; automatically updating the hyperlinks with each version released. |
I am curious to see this solution. How does it interact with the distro-specific .goreleaser files? Go ahead an open a PR. |
Agreed, let's see a PR and discuss it there :) |
Hello @mx-psi , welcome back! This already happened, would you like for me to tag you to it ? |
Oh, looks like that should be #504, I had a look but missed it 😅 no need to tag me now! |
Adding the |
I have manually updated the release notes to include the desired header. |
I'll go through the goreleaser docs and find a better way to do it. I'd find a fix. |
It might be easiest to use gh cli somehow. Also maybe try using release note templates. |
@TylerHelmuth , I figured out what was missing! The repository specification is what's missing. |
Here's a sample of its usage and there's a release to show too : https://github.com/KenanBek/dbui/blob/main/.goreleaser.yml |
I am still concerned that the jobs specify a |
I'll make adjustments to that, and test the code to be sure it works as it should this time. |
Hello @mx-psi , @TylerHelmuth after about a week of battling and reading most of the goreleaser docs, here's what I've found. Having the . |
Without the root as the working directory, this is the only other way to do it. |
@Enzujp this looks promising. What happens if instead of a separate step you pass - name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
workdir: distributions/${{ inputs.distribution }}
args: release --clean --release-header-tmpl=release.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oh that's brilliant @TylerHelmuth ! It worked! |
@Enzujp perfect! can you do one more test where 2 release jobs run with that argument (mimicking how Core, Contrib, and k8s all release at the same time in this repo)? I want to make sure they don't clash |
@TylerHelmuth I'm a little confused as to how I'm to go about this, please explain a little further. |
Can you update your release workflow with a second release job like
|
Done @TylerHelmuth. Here's the link to the test : https://github.com/Enzujp/sample-releases/actions/runs/8711833942/job/23896805424 |
Awesome, let's implement this option |
@TylerHelmuth Got it. I only need include this in the release section right? Like this
|
Correct, and add the template file. It should live in |
@TylerHelmuth , |
By default, the Github release only includes the changelog from this repository, but most users would care more about the changelog on core and contrib.
I manually edited the release for v0.96.0 to include the core and contrib changelogs (see https://github.com/open-telemetry/opentelemetry-collector-releases/releases/tag/v0.96.0) but we could make this automatic via goreleaser using https://goreleaser.com/customization/release/#custom-release-notes.
The text was updated successfully, but these errors were encountered: