Skip to content

Commit c001b95

Browse files
Ignore deletions on kustomize action when using filter=modified
1 parent 3bc9dfc commit c001b95

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

envsubst/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Simple wrapper action for running [envsubst] over a file or set of files.
55
## Usage
66

77
```yaml
8-
- uses: hpedrorodrigues/actions/envsubst@main
8+
- uses: hpedrorodrigues/actions/envsubst@v1.0.1
99
with:
1010
# One or more files to apply substitutions on (separated by space).
1111
input: ""
@@ -35,7 +35,7 @@ Simple wrapper action for running [envsubst] over a file or set of files.
3535
### Apply substitutions on a single file
3636
3737
```yaml
38-
- uses: hpedrorodrigues/actions/envsubst@main
38+
- uses: hpedrorodrigues/actions/envsubst@v1.0.1
3939
with:
4040
input: template.yml
4141
output: deployment.yml
@@ -44,7 +44,7 @@ Simple wrapper action for running [envsubst] over a file or set of files.
4444
### Apply substitutions on multiple files
4545
4646
```yaml
47-
- uses: hpedrorodrigues/actions/envsubst@main
47+
- uses: hpedrorodrigues/actions/envsubst@v1.0.1
4848
with:
4949
input: template.yml package.txt config.toml
5050
output: result.yml output.txt result.toml
@@ -53,7 +53,7 @@ Simple wrapper action for running [envsubst] over a file or set of files.
5353
### Apply substitutions in-place
5454
5555
```yaml
56-
- uses: hpedrorodrigues/actions/envsubst@main
56+
- uses: hpedrorodrigues/actions/envsubst@v1.0.1
5757
with:
5858
input: deployment.yml
5959
in_place: true
@@ -62,7 +62,7 @@ Simple wrapper action for running [envsubst] over a file or set of files.
6262
### Apply substitutions with custom environment variables
6363
6464
```yaml
65-
- uses: hpedrorodrigues/actions/envsubst@main
65+
- uses: hpedrorodrigues/actions/envsubst@v1.0.1
6666
with:
6767
input: template.yml
6868
output: result.yml
@@ -74,15 +74,15 @@ Simple wrapper action for running [envsubst] over a file or set of files.
7474
### Apply substitutions and print result to stdout
7575
7676
```yaml
77-
- uses: hpedrorodrigues/actions/envsubst@main
77+
- uses: hpedrorodrigues/actions/envsubst@v1.0.1
7878
with:
7979
input: template.yml
8080
```
8181
8282
### Apply substitutions restricting to specific environment variables
8383
8484
```yaml
85-
- uses: hpedrorodrigues/actions/envsubst@main
85+
- uses: hpedrorodrigues/actions/envsubst@v1.0.1
8686
with:
8787
input: template.yml
8888
format: '${CUSTOM_VAR} ${GITHUB_SHA}'

kustomize/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Simple action to validate kustomization files and outputs using [Kustomize].
55
## Usage
66

77
```yaml
8-
- uses: hpedrorodrigues/actions/kustomize@main
8+
- uses: hpedrorodrigues/actions/kustomize@v1.0.1
99
with:
1010
# Strategy to use for detecting kustomization directories.
1111
# Possible values
@@ -40,9 +40,9 @@ Simple action to validate kustomization files and outputs using [Kustomize].
4040
### Validate all kustomization directories
4141
4242
```yaml
43-
- uses: hpedrorodrigues/actions/kustomize@main
43+
- uses: hpedrorodrigues/actions/kustomize@v1.0.1
4444
# or
45-
- uses: hpedrorodrigues/actions/kustomize@main
45+
- uses: hpedrorodrigues/actions/kustomize@v1.0.1
4646
with:
4747
filter: 'none'
4848
```
@@ -53,15 +53,15 @@ Simple action to validate kustomization files and outputs using [Kustomize].
5353
- uses: actions/checkout@v4
5454
with:
5555
fetch-depth: 0 # This is required to allow this action to detect modified files.
56-
- uses: hpedrorodrigues/actions/kustomize@main
56+
- uses: hpedrorodrigues/actions/kustomize@v1.0.1
5757
with:
5858
filter: 'modified'
5959
```
6060
6161
### Validate specific kustomization directories
6262
6363
```yaml
64-
- uses: hpedrorodrigues/actions/kustomize@main
64+
- uses: hpedrorodrigues/actions/kustomize@v1.0.1
6565
with:
6666
filter: 'static'
6767
path: 'kustomize/base kustomize/overlays/production'
@@ -70,7 +70,7 @@ Simple action to validate kustomization files and outputs using [Kustomize].
7070
### Validate kustomization directories with custom log level
7171
7272
```yaml
73-
- uses: hpedrorodrigues/actions/kustomize@main
73+
- uses: hpedrorodrigues/actions/kustomize@v1.0.1
7474
with:
7575
filter: 'none'
7676
log_level: 'verbose'
@@ -79,7 +79,7 @@ Simple action to validate kustomization files and outputs using [Kustomize].
7979
### Validate kustomization directories with custom flags
8080
8181
```yaml
82-
- uses: hpedrorodrigues/actions/kustomize@main
82+
- uses: hpedrorodrigues/actions/kustomize@v1.0.1
8383
with:
8484
filter: 'none'
8585
flags: '--load-restrictor=LoadRestrictionsNone --enable-alpha-plugins'
@@ -92,7 +92,7 @@ Simple action to validate kustomization files and outputs using [Kustomize].
9292
- uses: alexellis/arkade-get@master
9393
with:
9494
kustomize: latest
95-
- uses: hpedrorodrigues/actions/kustomize@main
95+
- uses: hpedrorodrigues/actions/kustomize@v1.0.1
9696
with:
9797
filter: 'none'
9898
```

kustomize/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ case "${filter}" in
3131
;;
3232
modified)
3333
readonly kustomization_directories="$(
34-
git diff --name-only HEAD^ \
34+
git diff --diff-filter=d --name-only HEAD^ \
3535
| xargs -I {} dirname {} \
3636
| sort -u \
3737
| xargs -I {} sh -c 'find {} -maxdepth 1 \( -name kustomization.yml -o -name kustomization.yaml \) | grep -q . && echo {} || true'

0 commit comments

Comments
 (0)