61 Commits

Author SHA1 Message Date
Mike Coutermarsh
d3311befb6
Merge pull request #50 from jbolda/master
create release with body text sourced from file
2020-07-01 07:27:47 -07:00
Mike Coutermarsh
8210505c40
Merge branch 'master' into master 2020-07-01 07:26:37 -07:00
Mike Coutermarsh
84b30a2ce1
Merge pull request #73 from jhutchings1/codeql
Add CodeQL security scanning
2020-06-16 12:53:01 -07:00
Mike Coutermarsh
e9dc4ac22d
Merge pull request #32 from fleskesvor/feature/support-target-commitish
Tag and release on a specific commitish
v.1.1 v.1.1.1 v1.1.1
2020-06-16 12:24:20 -07:00
Mike Coutermarsh
62b2b8381c
Merge branch 'master' into feature/support-target-commitish 2020-06-16 12:21:59 -07:00
Mike Coutermarsh
d28992e4ca
Merge pull request #75 from Bilge/patch-1
Changed release name to be optional field
2020-06-16 11:53:59 -07:00
Bilge
80985fc475
Changed release name to be optional field 2020-06-13 12:51:35 +01:00
Justin Hutchings
ec9ee66a82 Add CodeQL security scanning 2020-06-03 09:32:23 -07:00
Jacob Bolda
e9cf5d96f3
Merge pull request #2 from ssgglobal/master
body_path missing from action.yml
2020-05-27 07:09:33 -05:00
Jess Carlos
f37d718ae9
define body_path 2020-05-26 12:09:33 -07:00
PJ Quirk
c9ba6969f0
Merge pull request #70 from actions/users/paquirk/ghesfixes
Bump actions/github to 2.2.0
v1.1.0
2020-05-15 15:20:08 -04:00
PJ Quirk
7bc451acb8 Bump actions/github to 2.2.0 2020-05-12 16:27:09 -04:00
Thomas Hughes
da6846bafe
Merge pull request #62 from ericsciple/patch-1
Update readme example to pin to major version
2020-05-05 13:35:53 -05:00
eric sciple
6addae869b
Update readme example to pin to major version 2020-04-23 20:45:39 -04:00
Thomas Hughes
164c698b8b
Merge pull request #57 from actions/dependabot/npm_and_yarn/acorn-5.7.4
Bump acorn from 5.7.3 to 5.7.4
2020-04-17 08:15:48 -05:00
Thomas Hughes
c6361542cc
Merge pull request #33 from actions/dependabot/npm_and_yarn/handlebars-4.5.3
Bump handlebars from 4.2.1 to 4.5.3
2020-04-17 08:15:00 -05:00
Jacob Bolda
9d21c8a3f2
update readme with body_path 2020-04-11 23:19:42 -05:00
Jacob Bolda
7424051c44
Merge branch 'master' of https://github.com/jbolda/create-release 2020-04-11 23:13:50 -05: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
dependabot[bot]
e28d56d234
Bump acorn from 5.7.3 to 5.7.4
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-04-05 07:07:19 +00:00
Jacob Bolda
3cd5bbb314
Update README.md 2020-03-07 22:20:23 -06:00
Thomas Hughes
8f324cdc2e
Merge pull request #45 from khitrenovich/patch-1
Update README to show usage of "latest" version
2020-02-28 08:23:48 +01:00
Anton Khitrenovich
0e420272a0
Update README to show usage of "latest" version
...otherwise `body` usage sample doesn't work, which results in a bunch of open issues on the topic.
2020-02-27 13:06:08 -05:00
Thomas Hughes
fca5fb59db Merge pull request #42 from actions/IAmHughes/automate-major-versioning
Add workflow to automate versioning
v1.0.1
2020-02-10 09:04:46 +01:00
Thomas Hughes
716a1bccc7 Add versioning action to slide major versions w/ release 2020-02-10 09:04:07 +01: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
dependabot[bot]
62bca7df51
Bump handlebars from 4.2.1 to 4.5.3
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.2.1 to 4.5.3.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.2.1...v4.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-30 03:03:28 +00:00
fleskesvor
1a72e235c1 Add target_commitish to tests 2019-12-29 09:36:31 +01:00
fleskesvor
2b67105e25 Tag and release on a specific commitish 2019-12-29 09:06:12 +01: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