- Notifications
You must be signed in to change notification settings - Fork359
How do you make a major or minor release draft that includes many PR?#1367
-
Currently, I am not using this project but I may use it in my next project. And I have a question I see many release drafts in this repo that have many PR names inside of them. how is that possible? what is the logic behind it? |
BetaWas this translation helpful?Give feedback.
All reactions
You need to use the config file and input parameters to solve your use case. Please check the readme for configuration options and input options
Replies: 2 comments 3 replies
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Oh, my bad, |
BetaWas this translation helpful?Give feedback.
All reactions
-
Here is a YouTube video that explains most of release drafter. What you are looking for is to combine multiple actions to solve your need. https://github.com/release-drafter/release-drafter/blob/master/.github/workflows/release.yml This search find users of release drafter:https://github.com/search?q=release-drafter%2Frelease-drafter%20path%3A.github%2Fworkflows&type=code |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thank you for your response. I used it in my project and it's working now! But there is an issue! I have both here are my configs: .github/workflows/draft.ymlname:Release Drafteron:push:branches: -mainjobs:update_release_draft:permissions:contents:writepull-requests:writeruns-on:ubuntu-lateststeps: -uses:release-drafter/release-drafter@masterenv:GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}with:commitish:main .github/workflows/release.ymlname:Releaseon:push:tags: -v*.*.*env:HUSKY:"0"jobs:build:permissions:contents:writepull-requests:writeruns-on:ubuntu-lateststeps: -name:Checkoutuses:actions/checkout@v3with:fetch-depth:0 -name:versionid:versionrun:| tag=${GITHUB_REF/refs\/tags\//} version=${tag#v} echo "version=${version}" >> $GITHUB_OUTPUT -uses:release-drafter/release-drafter@masterwith:version:${{ steps.version.outputs.version }}publish:trueenv:GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }} package.json"version":"0.0.1-pre-alpha.13","scripts": {"postversion":"git push && git push --tags"} the file and here is what I do:
|
BetaWas this translation helpful?Give feedback.
All reactions
-
You need to use the config file and input parameters to solve your use case. Please check the readme for configuration options and input options |
BetaWas this translation helpful?Give feedback.
All reactions
-
Fixed it! As you said, I had to add with:name:v${{ steps.version.outputs.version }}tag:v${{ steps.version.outputs.version }}version:${{ steps.version.outputs.version }}publish:true thanks for the help and the project :) |
BetaWas this translation helpful?Give feedback.