ci: run analyze only on push; remove PR-specific checks
Some checks failed
Code Analysis and Production Deploy / analyze (push) Successful in 2m49s
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Successful in 2m0s
Require Package Version Change / check (pull_request) Failing after 9s
Some checks failed
Code Analysis and Production Deploy / analyze (push) Successful in 2m49s
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Successful in 2m0s
Require Package Version Change / check (pull_request) Failing after 9s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user