Naveen Prashanth and Robin Raju
d049b594b6
Specify different extract path ( #768 )
...
* Update action.yml
* Update download-settings.ts
* Update input-helper.ts
* Update main.ts
* Update action.yml
* Add files via upload
* Update main.test.ts
* Update README.md
* Consolidate extract path and output path inputs, add tests
* Remove dist
---------
Co-authored-by: Robin Raju <robinraju@users.noreply.github.com >
2026-04-18 19:15:02 +01:00
Wires77 and Robin Raju
3bd996fb72
fix #729 : Remove archive after extraction ( #792 )
...
* fix #729 : Remove archive after extraction
Almost all uses of this action that will be extracting a release archive will not need the archive after the fact, so I opted to not put this behind a flag option.
* Move extraction info log after file removal
* Remove unwanted async from rm, fix tests
---------
Co-authored-by: Robin Raju <robinraju@users.noreply.github.com >
2026-04-18 16:02:19 +01:00
Robin Raju
b16c1cd450
Migrate to ESM ( #932 )
...
* Migrate to ESM
* update checks
* Add a precommit hook to avoid changes to dist
* Fix failure on windows
* Fix failure on windows
2026-04-18 14:21:41 +01:00
Robin Raju
d96e594e9f
Add more test coverage ( #920 )
...
* Add more test coverage
* Fix tests
2026-04-06 22:19:06 +01:00
David Schmitt and Robin Raju
32f3c28909
Improve error reporting ( #903 )
...
* Improve error reporting
* Fix lint errors, add dist (temporary)
---------
Co-authored-by: Robin Raju <robinraju@users.noreply.github.com >
2026-04-06 19:32:29 +01:00
David Schmitt and Robin Raju
38255e663d
Await directory creation ( #902 )
...
This is causing download failures when the directory is not created fast
enough.
Co-authored-by: Robin Raju <robinraju@users.noreply.github.com >
2026-03-22 21:43:35 +00:00
Robin Raju
6c76fddc2c
Update project config and dependencies ( #723 )
...
* Update linter config and dependencies
* Remove source map
2024-04-24 17:48:10 +01:00
Robin Raju
cb096d8fa1
Fix No assets found in release error ( #722 )
...
* Debug tar|zip only download
* Add a failing test
* Fix no assets found error
* Update CI test script
* remove default filename
* Replace regex based file matching with minimatch lib
2024-04-24 16:32:37 +01:00
jackie-linz
452eec1cd3
fix: change zip library to fix garbled extract file under node 20 ( #707 )
...
* fix: change zip library to fix garbled extract file under node 20
fixes : #689
* test: added test for archive file with larger content
2024-04-09 11:01:41 +01:00
Robin Raju
368754b9c6
Download latest prerelease ( #679 )
...
* Download latest prerelease
* Update README
* Add test to workflow
2024-01-27 21:44:08 +00:00
Robin Raju
52c0768930
Throw error when a release with no assets are obtained ( #678 )
2024-01-27 19:13:53 +00:00
Robin Raju
a3ec587962
Add release name to output variable ( #677 )
2024-01-27 18:38:37 +00:00
miryo
7eb82bc25d
implement feature #616 ( #628 )
...
* add outputs variable 'downloaded_files'
* make all files can get by indexer
* use dot '.' to access array member instead of []
* add 'f' prefix
* build dist/index.js
* use '_' to access files array member
* add outputs description
* remove outputs like 'downloaded_file_*'
* try fix build error in example expression
* Fix typo, move usage instructions to README
2023-05-04 15:21:01 +01:00
Robin Raju
82329140db
Read booleans from input using getBooleanInput ( #627 )
2023-04-27 13:01:22 +01:00
Henrik
623a3e0d2e
Add support to extract release archives - fixes #612 ( #613 )
...
* support automatic extraction of archives
* bump actions/io to 1.1.2 & update dev deps
* add extractAssets to interface & fix input parsing
* Update download-settings: fix doc comment
2023-04-26 20:23:10 +01:00
Robin Raju
63a56bcf84
fix reading releaseId from inputs ( #564 )
2022-12-03 19:01:13 +00:00
Kevin Mahoney
d64632db82
feat: get release by api id ( #563 )
...
* feat: get release by api id
* fmt
* tests: add fail case for release identification
* read releaseId
* Add releaseId to download settings
2022-12-03 18:33:46 +00:00
Robin Raju
e1f6dbdca9
Fail loudly if an asset is missing from the release ( #542 )
2022-10-22 14:01:41 +01:00
Robin Raju
a2560d77c5
Add output variable tag_name to the action ( #480 )
...
* Add output variable `tag_name` to the action
* Simplify test steps on ci
* Set bash as default shell for windows runner
* Update README
2022-07-06 13:46:57 +02:00
Robin Raju
0ea540940e
Configurable api url to add support for github enterprise server ( #464 )
...
* Add github-api-url to workflow input
* Update readme
2022-06-20 11:40:24 +02:00
Rick Lambrechts and Robin Raju
d2289472cc
Added filename wildcard support ( #460 )
...
* Added filename wildcard support
* Add more tests for wildcard filename matching
Co-authored-by: Robin Raju <robinraju@users.noreply.github.com >
2022-06-16 19:10:54 +02:00
Robin Raju
768e5668c5
Fix filename, add reponame as prefix to tag_name ( #456 )
2022-06-10 23:52:27 +02:00
Robin Raju
0431bf60eb
Remove unwanted prefix from zipBall and tarBall file name ( #455 )
...
- use tagname as the final filaname
2022-06-10 22:36:34 +02:00
Robin Raju
e0d223890b
Refactor downloader ( #448 )
...
* Refactor: Move downloader to a class
* Use BearerCredentialHandler from typed-rest-client for authentication
Add http response mock to unit tests
2022-06-06 21:27:38 +02:00
Robin Raju
2dd2f6632e
Add logging for latest tag name ( #374 )
2022-02-03 21:21:06 +01:00
Robin Raju
4bdb8ee081
Upgrade node runtime to v16 ( #341 )
...
* Upgrade node runntime to v16
* Upgrade node environment
- Fix eslint failures
- Adapt ci workflow
* Add name to ci step
2021-12-07 09:25:59 +01:00
dependabot[bot] and Robin Raju
a156cdfcca
Bump @typescript-eslint/parser from 3.10.1 to 5.6.0 ( #338 )
...
* Bump @typescript-eslint/parser from 3.10.1 to 5.6.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 3.10.1 to 5.6.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.6.0/packages/parser )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Fix esslint failure
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Robin Raju <robinraju@users.noreply.github.com >
2021-12-07 07:00:42 +00:00
Robin Raju
2ec99303be
Fix for download failure on private repos ( #334 )
...
- Remove Authorization header when following redirects
2021-12-05 00:42:05 +01:00
Robin Raju
95181030e3
Change option for downloading all assets to fileName with "*" ( #291 )
...
* Change option for downloading all assets to fileName with "*"
Add test on CI to download filew from private repo
* Update CI workflow
2021-08-29 22:47:30 +02:00
Robin Raju
4699878cd6
Fix tarball/zipball download failure ( #282 )
...
* Fix tarball/zipball download failure
* Add correct request headers to asset download
2021-08-14 23:43:02 +02:00
Robin Raju
17fbc30211
Build v1.1
2021-07-02 18:12:10 +02:00
Robin Raju
76080f14de
Merge branch 'download-all-assets' of https://github.com/PayFacto-Pos/release-downloader into PayFacto-Pos-download-all-assets
2021-07-02 17:50:30 +02:00
LiveLM
f5a0b00b83
Fix typo
2021-06-28 14:18:29 -03:00
Guillaume Gros
a72559ab9c
Fix for loop
2021-03-23 14:47:31 -04:00
Guillaume Gros
5f93d3304a
Fix syntax
2021-03-23 14:38:40 -04:00
Guillaume Gros
e201aa7c35
Use for instead of Array.forEach
2021-03-23 14:36:54 -04:00
Guillaume Gros
6d40ac0fec
Fix syntax
2021-03-23 14:34:20 -04:00
Guillaume Gros
ed416bbe0a
Add a way to download all assets
2021-03-23 14:29:17 -04:00
Robin Raju
f41ad93917
Fix github api request headers
2020-07-27 21:35:42 +02:00
Robin Raju
19e16339c3
Add support for private repositories
2020-07-27 15:10:54 +02:00
Robin Raju
b7b676bd2f
Add support for downloading multiple files
...
Download asset from any tag/version
Adapt unit test
2020-07-27 01:47:32 +02:00
Robin Raju
02496689dd
Add configurable inputs
...
Update tests
Fix CI config
2020-07-22 19:30:40 +02:00
Robin Raju
2e69c06e8c
Update CI config
2020-07-21 21:26:40 +02:00
Robin Raju
b73ea9d0ac
Initial commit
2020-07-21 21:02:57 +02:00