-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
47 lines (47 loc) · 1.42 KB
/
action.yaml
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
name: 'Git Delta Action'
description: 'Show git diff with delta for a specific files against environments/branches/commits'
inputs:
github_token:
description: 'Github token for query github rest api if compare against environments'
required: false
environment:
description: 'Environment to compare against'
required: false
branch:
description: 'Base branch to compare against'
required: false
default: 'main'
commit:
description: 'Commit to compare against'
required: false
includes:
description: |
"File patterns to include in the delta calculation, separated by newlines `\n`"
For example:
includes: |
live/local/*
live/stag/ec2/terragrunt.hcl
required: false
default: ""
excludes:
description: |
"File patterns to exclude in the delta calculation, separated by newlines `\n` Note excludes are applied after includes."
For example:
excludes: |
*.zip
*/**/README.md
required: false
default: ""
online:
description: |
"If true, git delta will be run online against the GitHub API, otherwise it will be run offline"
required: false
default: true
outputs:
delta_files:
description: "File paths with the delta as json string format"
is_detected:
description: "Bool to show if delta has been detected"
runs:
using: 'docker'
image: 'docker://jerry153fish/git-delta:v0.0.1'