From 99ada247bd87478d9f97b32c77f7461ed485a1ec Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Wed, 3 Dec 2025 20:53:34 -0600 Subject: [PATCH] merge test --- .gitea/workflows/lint-test-helm-pull.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/lint-test-helm-pull.yaml b/.gitea/workflows/lint-test-helm-pull.yaml index 6581c91d7..a7c495eba 100644 --- a/.gitea/workflows/lint-test-helm-pull.yaml +++ b/.gitea/workflows/lint-test-helm-pull.yaml @@ -7,14 +7,19 @@ on: paths: - 'clusters/*/helm/**' + push: + branches: + - main + paths: + - 'clusters/*/helm/**' + env: CLUSTER: cl01tl BASE_BRANCH: "origin/${{ gitea.base_ref }}" jobs: - lint-pull-request: + lint-helm: runs-on: ubuntu-js - if: github.event_name == 'pull_request' steps: - name: Checkout uses: actions/checkout@v6 @@ -28,11 +33,11 @@ jobs: with: branch: ${{ gitea.base_ref }} - - name: Branch Exists + - name: Report Branch Exists id: branch-exists if: github.event_name == 'push' || steps.check-branch-exists.outputs.exists == 'true' && github.event_name == 'pull_request' run: | - echo ">> Branch ${{ gitea.base_ref }} is exists, will continue with linting" + echo ">> Branch ${{ gitea.base_ref }} exists, will continue with linting" echo "----" @@ -53,6 +58,7 @@ jobs: echo ">> Target branch for diff is: ${BASE_BRANCH}" echo "" 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/') if [ -n "${GIT_DIFF}" ]; then