Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit edc7ccc

Browse files
author
Matt Reeves
committedDec 13, 2024
Merge branch 'main' into renovate/ghcr.io-n8n-io-n8n-1.x
2 parents 93b3233 + c59f0fe commit edc7ccc

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed
 

‎.forgejo/workflows/yamllint.yml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Lint on PR
2+
13
on:
24
pull_request:
35
types: [opened, synchronize, reopened]
@@ -12,23 +14,15 @@ jobs:
1214
- name: Checkout code
1315
uses: actions/checkout@v4
1416

15-
- name: Get modified YAML files
16-
id: get_changed_files
17+
- name: Debug Repository Contents
1718
run: |
18-
if git rev-parse --verify HEAD^ >/dev/null 2>&1; then
19-
CHANGED_FILES=$(git diff --name-only HEAD^ HEAD | grep -E '\.(yml)$' || true)
20-
else
21-
CHANGED_FILES=$(git diff --name-only $(git hash-object -t tree /dev/null) HEAD | grep -E '\.(yml)$' || true)
22-
fi
23-
echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV
19+
pwd
20+
ls -R
2421
25-
- name: Run yamllint on modified files
26-
if: env.CHANGED_FILES != ''
27-
run: |
28-
yamllint $CHANGED_FILES
29-
env:
30-
CHANGED_FILES: ${{ env.CHANGED_FILES }}
22+
- name: Show yamllint version
23+
run: |
24+
yamllint --version
3125
32-
- name: Skip linting if no YAML files are changed
33-
if: env.CHANGED_FILES == ''
34-
run: echo "No YAML files changed in this PR. Skipping lint."
26+
- name: Lint .yml files
27+
run: |
28+
yamllint -d docker/**/*.yml

0 commit comments

Comments
 (0)
Please sign in to comment.