33 Commits

Author SHA1 Message Date
Jacob Bolda
3cd5bbb314
Update README.md 2020-03-07 22:20:23 -06:00
Jacob Bolda
e0754ec952
Merge pull request #1 from jbolda/body-markdown
release body based on file
2020-02-05 22:58:59 -06:00
Jacob Bolda
6d0973ee39
reorder test mock inputs 2020-02-05 22:47:13 -06: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
Thomas Hughes
4d1b6075ce
Merge pull request #22 from sclaire-1/master
Edit README.md
2019-11-18 16:57:21 -06:00
sclaire-1
69b747352a
Edit README.md
Removed a word in the "Prerequisites" section to improve flow.
2019-11-18 12:31:28 -08:00
Steve Winton
d9c9ca3972
Merge pull request #11 from csexton/add-body
Include body parameter for release
2019-11-15 14:57:28 -08:00
Mike Coutermarsh
77669bf751
Merge pull request #18 from actions/ethomson/name_update
Update action description
2019-11-12 08:13:12 -08:00
Edward Thomson
de86cc55c4 Update action name and description 2019-11-08 16:02:58 +00:00
Edward Thomson
2329f0d753 README: use v1 for semantic version goodness 2019-11-08 16:00:49 +00:00
Thomas Hughes
216650af00
Update README.md 2019-11-05 07:10:17 -06:00
Thomas Hughes
35e5c6da76
Add comment about GITHUB_TOKEN being provided by env 2019-11-04 16:17:19 -06: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
038c480249
Merge pull request #8 from actions/IAmHughes/fix-link-to-license
Fix link to LICENSE
2019-10-20 17:48:29 -05:00
Thomas Hughes
2470c6ab61
Update CONTRIBUTING.md 2019-10-20 17:47:47 -05:00
Thomas Hughes
0cd8e92f5b
Merge pull request #1 from francisfuzz/missing-backtick
Docs: update README to include a closing backtick
2019-10-11 09:12:54 -05:00
francisfuzz
05bdca6c98
docs: update README to include a closing backtick 2019-10-11 16:10:37 +02:00
Thomas Hughes
8d93430edd
Refactor main.js for test coverage v1.0.0 2019-09-27 14:19:53 -05:00
Thomas Hughes
fe2c2b435f
Add description to test suite 2019-09-27 09:06:50 -05:00
Thomas Hughes
cc8e50bfc7
Add additional tests 2019-09-26 15:50:59 -05:00
Thomas Hughes
aa6f452281
Create release endpoint test 2019-09-26 15:24:23 -05:00
Thomas Hughes
782415ab55
Update CONTRIBUTING 2019-09-25 12:15:47 -05:00
Thomas Hughes
e87cc39944
Add jest config and export main.js 2019-09-20 15:29:25 -05:00
Thomas Hughes
97fca7f8d6
Add initial test stub 2019-09-20 15:18:26 -05:00
Thomas Hughes
3d8e310430
Setup CI 2019-09-20 15:16:57 -05:00
Thomas Hughes
74488db0a3
Fix ESLint errors 2019-09-20 15:11:35 -05:00
Thomas Hughes
961e428264
Add test stub 2019-09-20 15:08:16 -05:00
Thomas Hughes
af260870f7
Update dev dependencies, add ESLint 2019-09-20 15:07:18 -05:00
Thomas Hughes
d0222fc862
Initial commit 2019-09-20 14:55:33 -05:00