Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

create release with body text sourced from file #50

Merged
merged 15 commits into from
Jul 1, 2020

Conversation

jbolda
Copy link
Contributor

@jbolda jbolda commented Mar 8, 2020

This PR adds an additional option to create a release with the description pulled in from a file. This is useful as a user can pipe output into a text file in the steps leading up to this step running to create the release. This allows for more dynamic descriptions than allowed by the existing body and opens up the ability to use the full range of markdown parsers and libraries.

I have a tagged release if anyone would like to test drive it.

iamNCJ
iamNCJ previously approved these changes Mar 17, 2020
Copy link

@iamNCJ iamNCJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome job, I'm expecting this function

@aaronlcope
Copy link

@IAmHughes / @csexton - could one of you please consider merging this PR to master? The example to set the body output and cat the file only gets the first line of the file for me, which i generate using gren. Thank you!

package.json Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@frankgh
Copy link

frankgh commented May 20, 2020

will this be merged at some point?

Jess Carlos and others added 2 commits May 26, 2020 12:09
@estesp
Copy link

estesp commented May 27, 2020

Would be nice to get this into the official action as I have found that even using the other "workarounds" to generate a body: from content can leave you with a "argument list too long" error when creating the release with a ${{ some output ref }} construct for body.

Looks like it needs a rebase to be mergeable however, @jbolda

@jbolda
Copy link
Contributor Author

jbolda commented Jun 4, 2020

I am generally waiting on a 👍 from @jasonkarns or whomever; not particularly keen on rebasing multiple times.

@jasonkarns
Copy link

@jbolda I'm not a member of the Actions team so I don't have merge ability in this repo 😬

@@ -19,6 +20,16 @@ async function run() {
const draft = core.getInput('draft', { required: false }) === 'true';
const prerelease = core.getInput('prerelease', { required: false }) === 'true';

const bodyPath = core.getInput('body_path', { required: false });
let bodyFileContent = null;
if (bodyPath !== '' && !!bodyPath) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I won't speak to the style that the actions team prefers, but bodyPath !== '' && is redundant, here. (The boolean value of the empty string is false.) Which would allow further reduction to just if(bodyPath). There's no reason to force cast to an actual boolean here because the type casting is already handled by falsiness.

@ma-sadeghi
Copy link

Is this PR going be merged anytime soon? We urgently need it in our project.

@aaronlcope
Copy link

Is this PR going be merged anytime soon? We urgently need it in our project.

I've been waiting since March 25th. This is a very valuable feature. I don't understand what the holdups continue to be...

@frankgh
Copy link

frankgh commented Jul 1, 2020

Is this PR going be merged anytime soon? We urgently need it in our project.

maybe we can ping @mscoutermarsh to get someone to look at it?

Copy link
Contributor

@mscoutermarsh mscoutermarsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Getting this merged.

@mscoutermarsh mscoutermarsh merged commit d3311be into actions:master Jul 1, 2020
@mscoutermarsh
Copy link
Contributor

Just tagged https://github.com/actions/create-release/releases/tag/v1.1.2.

Please give it a try and let me know if you run into any problems. If no issues, we'll bring into the v1 tag.

@estesp
Copy link

estesp commented Jul 1, 2020

@mscoutermarsh successfully used the tagged version of create-release@v1.1.2 with body_path; no problems

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants