Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to extract release archives - fixes #612 #613

Merged
merged 4 commits into from
Apr 26, 2023

Conversation

hegerdes
Copy link
Contributor

This PR is a refence implementation to support the automatic extaction of archives when downloading GH Releases with this action.

The config now contains a additional option:

name: "release-downloader"
inputs:
  extract:
    description: "If the downladed assets should be extracted to `out-file-path`. Supports tar, tar.gz and zip"
    default: "false"
    required: false

What changed:

  • Added extractor option
  • Implemented extraction
  • Extended jest test for this option

This option supports tar, tar.gz and zip archives on Linux, MacOS, and Linux

@hegerdes
Copy link
Contributor Author

See issue #612

@tsanton
Copy link

tsanton commented Mar 31, 2023

@robinraju Hi! Have you had the time to review this? :)

Copy link
Owner

@robinraju robinraju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hegerdes Thank you for adding this great feature. And apologies for the late response on this PR.

I've added some comments below. We can get this merged once it's resolved.

README.md Outdated Show resolved Hide resolved
src/main.ts Outdated Show resolved Hide resolved
__tests__/main.test.ts Outdated Show resolved Hide resolved
@robinraju robinraju merged commit 623a3e0 into robinraju:main Apr 26, 2023
jimmykarily referenced this pull request in kairos-io/provider-kairos May 17, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[robinraju/release-downloader](https://togithub.com/robinraju/release-downloader)
| action | minor | `v1.7` -> `v1.8` |

---

### Release Notes

<details>
<summary>robinraju/release-downloader</summary>

###
[`v1.8`](https://togithub.com/robinraju/release-downloader/releases/tag/v1.8):
Release Downloader v1.8

[Compare
Source](https://togithub.com/robinraju/release-downloader/compare/v1.7...v1.8)

##### What's Changed

- Add support to extract release archives - fixes
[#&#8203;612](https://togithub.com/robinraju/release-downloader/issues/612)
by [@&#8203;hegerdes](https://togithub.com/hegerdes) in
[https://github.com/robinraju/release-downloader/pull/613](https://togithub.com/robinraju/release-downloader/pull/613)
- Read booleans from input using `getBooleanInput` by
[@&#8203;robinraju](https://togithub.com/robinraju) in
[https://github.com/robinraju/release-downloader/pull/627](https://togithub.com/robinraju/release-downloader/pull/627)
- implement feature
[#&#8203;616](https://togithub.com/robinraju/release-downloader/issues/616)
by [@&#8203;vcup](https://togithub.com/vcup) in
[https://github.com/robinraju/release-downloader/pull/628](https://togithub.com/robinraju/release-downloader/pull/628)

##### Dependency Updates

- Bump json5 from 1.0.1 to 1.0.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/robinraju/release-downloader/pull/586](https://togithub.com/robinraju/release-downloader/pull/586)
- Bump [@&#8203;types/node](https://togithub.com/types/node) from
18.16.0 to 18.16.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/robinraju/release-downloader/pull/626](https://togithub.com/robinraju/release-downloader/pull/626)
- Bump
[@&#8203;typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
from 5.59.0 to 5.59.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/robinraju/release-downloader/pull/625](https://togithub.com/robinraju/release-downloader/pull/625)
- Bump
[@&#8203;typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
from 5.59.1 to 5.59.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/robinraju/release-downloader/pull/631](https://togithub.com/robinraju/release-downloader/pull/631)
- Bump nock from 13.3.0 to 13.3.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/robinraju/release-downloader/pull/630](https://togithub.com/robinraju/release-downloader/pull/630)
- Bump [@&#8203;types/node](https://togithub.com/types/node) from
18.16.1 to 18.16.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/robinraju/release-downloader/pull/629](https://togithub.com/robinraju/release-downloader/pull/629)

##### New Contributors

- [@&#8203;hegerdes](https://togithub.com/hegerdes) made their first
contribution in
[https://github.com/robinraju/release-downloader/pull/613](https://togithub.com/robinraju/release-downloader/pull/613)
- [@&#8203;vcup](https://togithub.com/vcup) made their first
contribution in
[https://github.com/robinraju/release-downloader/pull/628](https://togithub.com/robinraju/release-downloader/pull/628)

**Full Changelog**:
robinraju/release-downloader@v1.7...v1.8

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/kairos-io/provider-kairos).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS43MS4wIiwidXBkYXRlZEluVmVyIjoiMzUuNzEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants