-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
56 lines (46 loc) · 1.59 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
49
50
51
52
53
54
55
56
name: 'ZyAction: Verify Changed Files'
description: Verify file changes that occur during workflow execution.
author: Florian Bernd
branding:
icon: check-square
color: green
inputs:
exclude-ignored:
description: >
Whether to exclude `.gitignore` ignored files from the changed files detection.
Defaults to `true`.
type: boolean
required: false
default: true
return-pipe:
description: >
Enable this option to return a shell (bash) command in the `pipe` output that can be
used for piping.
The output command must be `eval`ed to return the results. It can also be passed to
other actions that support a `pipe` input.
The `changed-files` output will not be populated if this option is enabled.
type: boolean
required: false
default: false
outputs:
changed-files:
description: >
The list of all changed files, or an empty string.
This output is only available if the `return-pipe` option is not enabled.
value: ${{ steps.verify.outputs.changed-files }}
pipe:
description: >
A shell (bash) command which can be used for piping.
This output is only available if the `return-pipe` option is enabled.
value: ${{ steps.verify.outputs.pipe }}
runs:
using: composite
steps:
- name: Verify Changed Files
id: verify
shell: bash
env:
INPUT_EXCLUDE_IGNORED: ${{ inputs.exclude-ignored != 'false' && 'true' || 'false' }}
INPUT_RETURN_PIPE: ${{ inputs.return-pipe != 'false' && 'true' || 'false' }}
run: |
"${{ github.action_path }}/entrypoint.sh"