From 4891e965bb59387ccf1f59c306060e8b5251e87b Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Wed, 20 May 2026 13:11:01 +0200 Subject: [PATCH] ci: run analyze only on push; remove PR-specific checks --- .gitea/workflows/code-analysis.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.gitea/workflows/code-analysis.yml b/.gitea/workflows/code-analysis.yml index b4b1192..2236692 100644 --- a/.gitea/workflows/code-analysis.yml +++ b/.gitea/workflows/code-analysis.yml @@ -1,7 +1,6 @@ name: Code Analysis and Production Deploy on: - pull_request: push: branches: [ main, dev ] @@ -32,20 +31,9 @@ jobs: npm -v - name: Check package.json version changed - if: "github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/main')" + if: "github.ref == 'refs/heads/main'" run: scripts/check-package-version-changed.sh origin/main - - name: Check version against production (PRs only) - if: github.event_name == 'pull_request' - env: - PROD_HOST: ${{ vars.PROD_HOST }} - PROD_USER: ${{ vars.PROD_USER }} - PROD_PORT: ${{ vars.PROD_PORT }} - PROD_SSH_KEY: ${{ secrets.PROD_SSH_KEY }} - run: | - chmod +x scripts/check-version-against-prod.sh - scripts/check-version-against-prod.sh - - name: gitleaks (Secrets Scanning) run: | # Try to get the latest release asset URL