Compare commits

...

3 commits

Author SHA1 Message Date
199b28c0bd Merge branch 'main' into renovate/ghcr.io-n8n-io-n8n-1.x
All checks were successful
/ Lint YAML files (pull_request) Successful in 4s
2024-12-12 23:38:17 -05:00
61f1a9eb4f Update .forgejo/workflows/yamllint.yml 2024-12-12 23:38:09 -05:00
a98092aea6 ⬆️ Update codeberg.org/forgejo/forgejo Docker tag to v9.0.3
All checks were successful
Lint on PR / Lint YAML files (pull_request) Successful in 5s
Ansible Deploy to Hosts / deploy (pull_request) Successful in 29s
2024-12-12 19:01:09 +00:00
2 changed files with 5 additions and 7 deletions

View file

@ -1,5 +1,3 @@
name: Lint on PR
on:
pull_request:
types: [opened, synchronize, reopened]
@ -17,16 +15,16 @@ jobs:
- name: Get modified YAML files
id: get_changed_files
run: |
CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -E '\.(yml)$' || true)
echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV
CHANGED_FILES=$(git diff --name-only HEAD^ HEAD | grep -E '\.(yml)$' || true)
echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV
- name: Run yamllint on modified files
if: env.CHANGED_FILES != ''
run: |
yamllint $CHANGED_FILES
yamllint $CHANGED_FILES
env:
CHANGED_FILES: ${{ env.CHANGED_FILES }}
- name: Skip linting if no YAML files are changed
if: env.CHANGED_FILES == ''
run: echo "No YAML files changed in this PR. Skipping lint."
run: echo "No YAML files changed in this PR. Skipping lint."

View file

@ -1,7 +1,7 @@
---
services:
server:
image: codeberg.org/forgejo/forgejo:9.0.2
image: codeberg.org/forgejo/forgejo:9.0.3
container_name: forgejo
environment:
- USER_UID=1000