Merge pull request 'ci: run analyze only on push; remove PR-specific checks' (#25) from dev into main
Some checks failed
Code Analysis and Production Deploy / analyze (push) Failing after 12s
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Has been skipped

Reviewed-on: #25
This commit is contained in:
2026-05-20 13:16:41 +02:00

View File

@@ -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