22 Commits

Author SHA1 Message Date
Thomas Boop
c38d3a140c
Add Licensed to Help Verify Prod Licenses (#88)
* Add Licensed workflow and setup
2020-09-24 09:29:24 -04:00
Chris McIntosh
818a8f0696
adding owner/repo options for remote releasing 2020-09-11 16:28:30 -05:00
Thomas Boop
653bc6fb02 Update licenses for @actions npm modules 2020-08-06 19:29:08 -04:00
Thomas Boop
e7b3139eb2 Add Third Party License Information 2020-08-06 10:49:24 -04:00
Mike Coutermarsh
91b6c4e353
Fix merge conflicts 2020-07-01 07:29:54 -07:00
Mike Coutermarsh
8210505c40
Merge branch 'master' into master 2020-07-01 07:26:37 -07:00
Mike Coutermarsh
62b2b8381c
Merge branch 'master' into feature/support-target-commitish 2020-06-16 12:21:59 -07:00
PJ Quirk
7bc451acb8 Bump actions/github to 2.2.0 2020-05-12 16:27:09 -04:00
Jacob Bolda
d16f41536b
switch to snake case and body_path 2020-04-11 23:13:20 -05:00
Jacob Bolda
b77c216cf6
escape double quotes in eslint command 2020-04-11 23:00:32 -05:00
Jacob Bolda
c06331b12c
only error on actual attempt at using bodyFromFile and reorder a bit for tests 2020-02-05 22:46:40 -06:00
Jacob Bolda
76860a04af
fix encoding 2020-02-03 23:14:20 -06:00
Jacob Bolda
15708f2a34
add new input, error if file not found 2020-02-03 23:04:42 -06:00
Jacob Bolda
cf2e5a0ea5
add encoding property 2020-02-03 22:49:09 -06:00
Jacob Bolda
bfe866faf6
try body as file, use as string otherwise 2020-02-03 22:37:38 -06:00
fleskesvor
2b67105e25 Tag and release on a specific commitish 2019-12-29 09:06:12 +01:00
Christopher Sexton
becafb2f61 Include body parameter for release
Fixes #4

This adds the ability to include the body parameter when creating the
release.

    - name: Checkout code
      uses: actions/checkout@master
    - name: Create Release
      id: create_release
      uses: actions/create-release@master
      with:
        tag_name: ${{ github.ref }}
        release_name: Release ${{ github.ref }}
        body: Release body

This also supports a multiline body:

    - name: Create Release
      id: create_release
      uses: actions/create-release@master
      with:
        tag_name: ${{ github.ref }}
        release_name: Release ${{ github.ref }}
        body: |
          This is a multiline body
          with more than one
          line

Or if you want the contents of a file:

    - name: Read CHANGELOG
      id: changelog
      run: |
        echo "::set-output name=body::$(cat CHANGELOG.md)"
    - name: Create Release
      id: create_release
      uses: actions/create-release@master
      with:
        release_name: Release ${{ github.ref }}
        body: ${{ steps.changelog.outputs.body }}

One decision I made in favor of less code was to send an empty body when
there was non present. If it would be preferred to send nothing in the
request for the `body` attribute I could instead compose the parameters
with an optional body attribute:

    releaseParams = {
      owner,
      repo,
      tag_name: tag,
      name: releaseName,
      draft,
      prerelease
    };

    if (body) releaseParams.body = body;

    const createReleaseResponse = await github.repos.createRelease( releaseParams );
2019-10-22 12:24:23 -04:00
Thomas Hughes
8d93430edd
Refactor main.js for test coverage 2019-09-27 14:19:53 -05:00
Thomas Hughes
aa6f452281
Create release endpoint test 2019-09-26 15:24:23 -05:00
Thomas Hughes
e87cc39944
Add jest config and export main.js 2019-09-20 15:29:25 -05:00
Thomas Hughes
74488db0a3
Fix ESLint errors 2019-09-20 15:11:35 -05:00
Thomas Hughes
d0222fc862
Initial commit 2019-09-20 14:55:33 -05:00