Skip to content

Commit 345143f

Browse files
committed
chore: remove output
1 parent 84a556c commit 345143f

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,17 @@ Whether to add subdirectories to simply zip all files to the root.
4747

4848
- **Required:** No
4949
- **Default:** true
50+
51+
If for example, you do the following:
52+
53+
```yaml
54+
- uses: papeloto/action-zip@v1
55+
with:
56+
files: dist/ manifest.json
57+
recursive: false
58+
dest: result.zip
59+
```
60+
61+
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.
62+
63+
Also if you want a nested file at the root, `recursive: false` is your guy.

action.yml

+5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ inputs:
66
required: true
77
dest:
88
description: "Name of output zip file"
9+
required: false
910
default: "result.zip"
1011
recursive:
1112
description: "Whether to add subdirectories to simply zip all files to the root"
13+
required: false
1214
default: true
15+
branding:
16+
icon: "package"
17+
color: "red"
1318
runs:
1419
using: "node12"
1520
main: "dist/index.js"

dist/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ zip.writeZip(destPath);
9494

9595
console.log(`\nZipped file ${dest} successfully`);
9696

97-
core.setOutput(destPath);
98-
9997

10098
/***/ }),
10199

index.js

-2
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,3 @@ const destPath = path.join(process.env.GITHUB_WORKSPACE, dest);
3838
zip.writeZip(destPath);
3939

4040
console.log(`\nZipped file ${dest} successfully`);
41-
42-
core.setOutput(destPath);

0 commit comments

Comments
 (0)