Merge pull request 'Remove package version change requirement for main PRs in code-analysis.yml to streamline workflow.' (#6) from dev into main
Reviewed-on: #6
This commit was merged in pull request #6.
This commit is contained in:
@@ -31,10 +31,6 @@ jobs:
|
||||
node -v
|
||||
npm -v
|
||||
|
||||
- name: Require package version change for main PRs
|
||||
if: github.event_name == 'pull_request' && github.base_ref == 'main'
|
||||
run: scripts/check-package-version-changed.sh origin/main
|
||||
|
||||
- name: gitleaks (Secrets Scanning)
|
||||
run: |
|
||||
# Try to get the latest release asset URL
|
||||
|
||||
20
.gitea/workflows/version-gate.yml
Normal file
20
.gitea/workflows/version-gate.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
name: Require Package Version Change
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Check package.json version changed
|
||||
run: scripts/check-package-version-changed.sh origin/main
|
||||
Reference in New Issue
Block a user