merge test
All checks were successful
renovate / renovate (push) Successful in 1m41s

This commit is contained in:
2025-12-03 20:53:34 -06:00
parent f6017099fc
commit 99ada247bd

View File

@@ -7,14 +7,19 @@ on:
paths: paths:
- 'clusters/*/helm/**' - 'clusters/*/helm/**'
push:
branches:
- main
paths:
- 'clusters/*/helm/**'
env: env:
CLUSTER: cl01tl CLUSTER: cl01tl
BASE_BRANCH: "origin/${{ gitea.base_ref }}" BASE_BRANCH: "origin/${{ gitea.base_ref }}"
jobs: jobs:
lint-pull-request: lint-helm:
runs-on: ubuntu-js runs-on: ubuntu-js
if: github.event_name == 'pull_request'
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v6 uses: actions/checkout@v6
@@ -28,11 +33,11 @@ jobs:
with: with:
branch: ${{ gitea.base_ref }} branch: ${{ gitea.base_ref }}
- name: Branch Exists - name: Report Branch Exists
id: branch-exists id: branch-exists
if: github.event_name == 'push' || steps.check-branch-exists.outputs.exists == 'true' && github.event_name == 'pull_request' if: github.event_name == 'push' || steps.check-branch-exists.outputs.exists == 'true' && github.event_name == 'pull_request'
run: | run: |
echo ">> Branch ${{ gitea.base_ref }} is exists, will continue with linting" echo ">> Branch ${{ gitea.base_ref }} exists, will continue with linting"
echo "----" echo "----"
@@ -53,6 +58,7 @@ jobs:
echo ">> Target branch for diff is: ${BASE_BRANCH}" echo ">> Target branch for diff is: ${BASE_BRANCH}"
echo "" echo ""
echo ">> Checking for changes ..." echo ">> Checking for changes ..."
git diff --name-only "${BASE_BRANCH}" -- | xargs -I {} dirname {} | sort -u | grep 'clusters/*/helm/'
GIT_DIFF=$(git diff --name-only "${BASE_BRANCH}" -- | xargs -I {} dirname {} | sort -u | grep 'clusters/*/helm/') GIT_DIFF=$(git diff --name-only "${BASE_BRANCH}" -- | xargs -I {} dirname {} | sort -u | grep 'clusters/*/helm/')
if [ -n "${GIT_DIFF}" ]; then if [ -n "${GIT_DIFF}" ]; then