Skip to content

Commit

Permalink
Checked the results of linting
Browse files Browse the repository at this point in the history
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
  • Loading branch information
hansinikarunarathne committed Jul 19, 2024
1 parent a290e0d commit 9dd2962
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/yaml_formatter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,16 @@ jobs:
run: cat changed_files_in_PR.txt

- name: Run yamllint on changed files
id: lint
run: |
if [ -s changed_files_in_PR.txt ]; then
cat changed_files_in_PR.txt | xargs -I {} yamllint {} || exit 1
else
if grep -q 'No YAML files have changed in this PR.' changed_files_in_PR.txt; then
echo "No YAML files have changed in this PR."
else
cat changed_files_in_PR.txt | xargs -I {} yamllint {} || exit 1
fi
shell: bash

- name: Check YAML lint results
if: success()
if: success() && steps.lint.outcome == 'success'
run: echo "No styling issues with YAML files."
shell: bash
12 changes: 6 additions & 6 deletions common/cert-manager/cert-manager/base/cert-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: certificaterequests.cert-manager.io
labels:
app: 'cert-manager'
app.kubernetes.io/name: 'cert-manager'
app.kubernetes.io/instance: 'cert-manager'
# Generated labels
app.kubernetes.io/version: "v1.14.5"
labels:
app: 'cert-manager'
app.kubernetes.io/name: 'cert-manager'
app.kubernetes.io/instance: 'cert-manager'
# Generated labels
app.kubernetes.io/version: "v1.14.5"
spec:
group: cert-manager.io
names:
Expand Down

0 comments on commit 9dd2962

Please sign in to comment.