mirror of
https://github.com/papeloto/action-zip
synced 2024-11-22 05:29:35 -08:00
chore: remove output
This commit is contained in:
parent
84a556cb4e
commit
345143f1ea
4 changed files with 19 additions and 4 deletions
14
README.md
14
README.md
|
@ -47,3 +47,17 @@ Whether to add subdirectories to simply zip all files to the root.
|
|||
|
||||
- **Required:** No
|
||||
- **Default:** true
|
||||
|
||||
If for example, you do the following:
|
||||
|
||||
```yaml
|
||||
- uses: papeloto/action-zip@v1
|
||||
with:
|
||||
files: dist/ manifest.json
|
||||
recursive: false
|
||||
dest: result.zip
|
||||
```
|
||||
|
||||
All the files inside the `dist` folder will be added at the root of the zip along with `manifest.json`. By contrast, if `recursive: true` (by default), the folder `dist` is included.
|
||||
|
||||
Also if you want a nested file at the root, `recursive: false` is your guy.
|
||||
|
|
|
@ -6,10 +6,15 @@ inputs:
|
|||
required: true
|
||||
dest:
|
||||
description: "Name of output zip file"
|
||||
required: false
|
||||
default: "result.zip"
|
||||
recursive:
|
||||
description: "Whether to add subdirectories to simply zip all files to the root"
|
||||
required: false
|
||||
default: true
|
||||
branding:
|
||||
icon: "package"
|
||||
color: "red"
|
||||
runs:
|
||||
using: "node12"
|
||||
main: "dist/index.js"
|
||||
|
|
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -94,8 +94,6 @@ zip.writeZip(destPath);
|
|||
|
||||
console.log(`\nZipped file ${dest} successfully`);
|
||||
|
||||
core.setOutput(destPath);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
|
|
2
index.js
2
index.js
|
@ -38,5 +38,3 @@ const destPath = path.join(process.env.GITHUB_WORKSPACE, dest);
|
|||
zip.writeZip(destPath);
|
||||
|
||||
console.log(`\nZipped file ${dest} successfully`);
|
||||
|
||||
core.setOutput(destPath);
|
||||
|
|
Loading…
Reference in a new issue