generated from int128/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yaml
50 lines (44 loc) · 1.64 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
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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.base_ref }}
path: _base_ref
- uses: int128/hide-comment-action@5aa4ad6cf762098ebdc5d3c046e9e1fb35fe5ce8 # v1.23.0
with:
token: ${{ inputs.token }}
ends-with: |
<!-- kustomize-action -->
<!-- diff-action -->
- uses: int128/kustomize-action@77cb30ebfef484fd4f3bb2f06da6130477e7c3d6 # v1.27.0
id: kustomize-head
with:
token: ${{ inputs.token }}
write-individual-files: ${{ inputs.write-individual-files }}
kustomization: ${{ inputs.kustomization }}
- uses: int128/kustomize-action@77cb30ebfef484fd4f3bb2f06da6130477e7c3d6 # v1.27.0
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@757ae2d0f4e2b66003f232f7ebd6ca998ff2b81b # v1.17.0
with:
token: ${{ inputs.token }}
base: ${{ steps.kustomize-base.outputs.directory }}
head: ${{ steps.kustomize-head.outputs.directory }}