From a12f1f7815450a98b79a92bc70c7898228d7c38b Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Thu, 16 Apr 2026 13:36:45 +0200 Subject: [PATCH] Remove package version change requirement for main PRs in code-analysis.yml to streamline workflow. --- .gitea/workflows/code-analysis.yml | 4 ---- .gitea/workflows/version-gate.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 .gitea/workflows/version-gate.yml diff --git a/.gitea/workflows/code-analysis.yml b/.gitea/workflows/code-analysis.yml index 063c489..4d55d2e 100644 --- a/.gitea/workflows/code-analysis.yml +++ b/.gitea/workflows/code-analysis.yml @@ -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 diff --git a/.gitea/workflows/version-gate.yml b/.gitea/workflows/version-gate.yml new file mode 100644 index 0000000..ec43011 --- /dev/null +++ b/.gitea/workflows/version-gate.yml @@ -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