ci: add production version check for PRs
Some checks failed
Code Analysis and Production Deploy / analyze (push) Failing after 13s
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Has been skipped

This commit is contained in:
Torsten Schulz (local)
2026-05-20 12:53:46 +02:00
parent 02ee4af49d
commit 549f4a1510
2 changed files with 46 additions and 0 deletions

View File

@@ -34,6 +34,17 @@ jobs:
- name: Check package.json version changed
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