-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathaction.yaml
35 lines (32 loc) · 952 Bytes
/
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
---
name: 'wolfictl-lint'
description: |
Wolfictl Lint and Lint yam.
inputs:
run_wolfictl_lint:
description: |
Run only wolfictl lint.
required: false
default: 'true'
run_wolfictl_lint_yam:
description: |
Run only wolfictl lint yam.
required: false
default: 'true'
runs:
using: "composite"
steps:
- name: Lint
if: ${{ inputs.run_wolfictl_lint == 'true' }}
id: lint
uses: docker://ghcr.io/wolfi-dev/sdk:latest@sha256:ae2157ba5830c8eef4b2f61b9b47c265a5e275592d8f735827e83e92d6b1142e
with:
entrypoint: wolfictl
args: lint --skip-rule no-makefile-entry-for-package
- name: Enforce YAML formatting
if: ${{ inputs.run_wolfictl_lint_yam == 'true' }}
id: lint-yaml
uses: docker://ghcr.io/wolfi-dev/sdk:latest@sha256:ae2157ba5830c8eef4b2f61b9b47c265a5e275592d8f735827e83e92d6b1142e
with:
entrypoint: wolfictl
args: lint yam