forked from int128/kustomize-action
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yaml
More file actions
50 lines (44 loc) · 1.41 KB
/
action.yaml
File metadata and controls
50 lines (44 loc) · 1.41 KB
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
name: kustomize-diff-action
description: run kustomize build and diff between head and base ref
inputs:
kustomization:
description: glob patterns to kustomization.yaml
required: true
write-individual-files:
description: set true to write individual files (optional)
token:
description: GitHub token (optional)
required: true
default: ${{ github.token }}
runs:
using: composite
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.base_ref }}
path: _base_ref
- uses: int128/hide-comment-action@v1
with:
token: ${{ inputs.token }}
ends-with: |
<!-- kustomize-action -->
<!-- diff-action -->
- uses: int128/kustomize-action@v1
id: kustomize-head
with:
token: ${{ inputs.token }}
write-individual-files: ${{ inputs.write-individual-files }}
kustomization: ${{ inputs.kustomization }}
- uses: int128/kustomize-action@v1
id: kustomize-base
with:
token: ${{ inputs.token }}
base-directory: _base_ref
write-individual-files: ${{ inputs.write-individual-files }}
kustomization: ${{ inputs.kustomization }}
ignore-kustomize-error: true
- uses: int128/diff-action@v1
with:
token: ${{ inputs.token }}
base: ${{ steps.kustomize-base.outputs.directory }}
head: ${{ steps.kustomize-head.outputs.directory }}