Commit Graph

72 Commits

Author SHA1 Message Date
9f3b580ccc lint fix and build 2021-07-25 19:53:56 -04:00
59b9126341 Retain original release info if the keys are not set (#109) 2021-07-25 19:53:56 -04:00
04c14f526b Update github.ts (#111) 2021-07-25 19:53:56 -04:00
2934fce629 Support custom target_commitish value (#76)
* Make target_commitish configurable

* Store compiled action for testing

* Add target_commitish to metadata

* Allow override of target_commitish for updating

* Print commit usage

* Improve message for commit usage

* Update draft releases too

* Revert "Update draft releases too"

This reverts commit ff30f8edb18fa851785a2d361b03c9713f5ac17d.

* Integrate latest changes from upstream.
2021-07-25 19:53:53 -04:00
674bcd2d67 Add release id to outputs (#60)
* Add release ID to outputs

* Update README
2021-07-25 19:51:58 -04:00
05d11c9fe8 Merge remote-tracking branch 'upstream/master' into default-token 2021-03-21 10:14:08 +03:00
1f8f474abe Add upload_url as action output (#75)
* Add upload_url as action output

* Update README
2021-03-21 01:59:32 -04:00
dac15d39e4 fix: Get the same behavior described in Docs(#71) (#85)
Now trying read body path first then falling back on body
2021-03-21 01:52:16 -04:00
d5e4f508ae Accept PAT as input and default to typically usable value 2021-03-16 07:50:02 +03:00
affa18ef97 Add repository input (#58) (#61) 2020-12-20 14:44:30 -05:00
4fb86a77e0 Add 'fail_on_unmatched_files' input (#55) 2020-06-25 02:11:41 -04:00
9439581056 fix: Update to latest throttling plugin (#53)
In attempt to fix unintentional retries on 422 error from GitHub,

1. Update to latest `@octokit/plugin-throttling` version
2. Depend on `@octokit/plugin-retry` plugin as well

Issue: #52
2020-05-24 20:39:23 -04:00
9f4852ebe6 Add tag_name option (#39)
Allow setting tag name like actions/create-release.
2020-01-09 01:06:19 -05:00
62eba970e0 Ability to update existing release body (#36)
* Ability to update existing release body

* Updated lib, fixed typo in workflow error message
2020-01-04 01:13:45 -05:00
7a7960d4c7 Feat/upload (#34)
* feat: warn file invalid when upload

* build: update release shell

* update emoji

* build: compile main.js
2019-12-28 17:07:38 -05:00
d651ef48cb Only catch github API error (#32)
* move assignements out of try block

* include compiled code
2019-12-10 08:49:37 -05:00
e234343e3e rebuild and fmt 2019-10-20 18:04:32 -04:00
1a522d88d8 Add the release HTML URL to outputs
This will allow subsequent actions to get access to the HTML URL for the
release created with this. Handy for composing multiple actions together
that are related to the release.

In my case I wanted to get the  URL into a slack message posted to the
team when a release is published.

The output can be referenced by using the `steps.release.ouput.url` in
the workflow yaml:

    - name: Release
      id: release
      uses: softprops/action-gh-release@v1
      with:
        name: "My Release"
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    - name: Slack
      uses: csexton/slack-message-action@v1
      with:
        message: New release posted at ${{ steps.release.outputs.url}}
2019-10-20 17:50:51 -04:00
2e7c800734 retry requests 2019-10-02 20:51:12 -04:00
ba42ad9139 honor body_path input when provided. fixes #22 2019-09-29 02:15:58 -04:00
a95bad53b2 add support for prereleases. fixes #17 2019-09-17 23:30:36 +09:00
3af8783d41 support multi-line delimited assets. fixes #15 2019-09-17 23:14:30 +09:00
916d072e3d declare interface impl 2019-09-17 19:33:38 +09:00
ca93e708e3 typo in type name 2019-09-17 19:27:32 +09:00
fcf37b79bd iterating over responses not releases 2019-09-17 18:04:39 +09:00
a31211f9ff debug what comes back from our iterator 2019-09-17 17:53:48 +09:00
f3c225f2b8 regenerate js, log on tag miss for debugging 2019-09-17 17:12:53 +09:00
9f9f2a3ed2 merge drafts workaround. fixes #14 2019-09-16 23:51:16 +09:00
bb78d54396 regenerate 2019-09-09 21:24:39 +09:00
ef96a2eb52 prettier 2019-09-09 21:20:59 +09:00
6fa875df0b error handling 2019-09-09 21:00:04 +09:00
e197e56931 try try try again 2019-09-09 20:46:36 +09:00
cf2aed3a12 debug logging 2019-09-09 20:36:51 +09:00
e48a25bf4e process import 2019-09-09 20:16:58 +09:00
7ab8811117 debug workflow 2019-09-09 18:42:19 +09:00
e60d11aee8 remove previous artifacts 2019-09-09 18:39:58 +09:00
d30d20cc01 remove outdated comment 2019-09-09 18:16:35 +09:00
b70b9666e8 remove fs import from main 2019-09-09 18:15:01 +09:00
2940cbc2ff dont import star 2019-09-09 18:14:17 +09:00
18daf2c63f refactor for cross platform use 2019-09-09 17:10:07 +09:00
2dfad92b71 add support for loading release body from a path. fixes: #2 2019-08-26 01:26:13 -04:00
7d73be4642 better test data 2019-08-26 00:43:16 -04:00
db0b38cbf5 error reporting 2019-08-26 00:40:00 -04:00
43b8a33025 spelling 2019-08-26 00:25:15 -04:00
96ebf47495 https 2019-08-26 00:22:09 -04:00
471be87ecf use RequestBuilder.query to manage url encoding 2019-08-25 23:40:13 -04:00
aa1c0dedfd test to validate asset url 2019-08-25 23:37:45 -04:00
c7f2407010 assets need names 2019-08-25 23:33:39 -04:00
d2478527cf Into idiom 2019-08-25 22:41:08 -04:00
4cac8612c9 log assumed mime 2019-08-25 22:35:32 -04:00