-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
action.yml
49 lines (48 loc) · 1.38 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: 'Zip Release'
author: 'TheDoctor0'
branding:
icon: 'archive'
color: 'yellow'
description: 'Make an archive from specified files and directories as workflow action'
inputs:
filename:
description: 'Filename for archive'
required: true
default: 'release.zip'
path:
description: 'Base path for archive files'
default: '.'
required: false
directory:
description: 'Working directory before zipping'
default: '.'
required: false
exclusions:
description: 'List of excluded files / directories'
default: ''
required: false
recursive_exclusions:
description: 'List of excluded files / directories with recursive wildcards (only applies on Windows with `zip` type)'
default: ''
required: false
custom:
description: 'Provide any custom parameters to the command'
default: ''
required: false
type:
description: 'Tool to use for archiving'
default: 'zip'
required: false
runs:
using: composite
steps:
- shell: bash
env:
INPUT_FILENAME: ${{ inputs.filename }}
INPUT_PATH: ${{ inputs.path }}
INPUT_DIRECTORY: ${{ inputs.directory }}
INPUT_EXCLUSIONS: ${{ inputs.exclusions }}
INPUT_RECURSIVE_EXCLUSIONS: ${{ inputs.recursive_exclusions }}
INPUT_CUSTOM: ${{ inputs.custom }}
INPUT_TYPE: ${{ inputs.type }}
run: $GITHUB_ACTION_PATH/entrypoint.sh