From 5da5b15228b68bef29be0ad6d3a74db3584d15f8 Mon Sep 17 00:00:00 2001 From: itzMiney Date: Mon, 27 Apr 2026 23:44:03 +0200 Subject: [PATCH] removed old redundant github workflows --- .github/workflows/ci.yml | 61 ---------------------------- .github/workflows/dependabot-fix.yml | 46 --------------------- .github/workflows/sync-dev.yml | 31 -------------- .github/workflows/workflow-lint.yml | 15 ------- 4 files changed, 153 deletions(-) delete mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/dependabot-fix.yml delete mode 100644 .github/workflows/sync-dev.yml delete mode 100644 .github/workflows/workflow-lint.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index d1a7713..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: CI - -on: - pull_request: - branches: [ master ] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v6 - with: - fetch-depth: 0 - - - name: Detect relevant changes - id: changes - shell: bash - run: | - BASE="${{ github.event.pull_request.base.sha }}" - HEAD="${{ github.sha }}" - - echo "Base: $BASE" - echo "Head: $HEAD" - - files="$(git diff --name-only "$BASE" "$HEAD")" - echo "Changed files:" - echo "$files" - - if echo "$files" | grep -Eq '^(src/|scripts/|angular\.json$|tsconfig.*\.json$|package\.json$|package-lock\.json$|public/i18n/)'; then - echo "run_build=true" >> "$GITHUB_OUTPUT" - else - echo "run_build=false" >> "$GITHUB_OUTPUT" - fi - - - name: Skip build (no relevant changes) - if: steps.changes.outputs.run_build != 'true' - run: | - echo "No files changed that affect the build/tests. Marking CI as successful." - exit 0 - - - name: Setup Node - if: steps.changes.outputs.run_build == 'true' - uses: actions/setup-node@v4 - with: - node-version: 24.13.0 - cache: npm - - - name: Pin npm version - if: steps.changes.outputs.run_build == 'true' - run: | - npm i -g npm@11.8.0 - npm --version - - - name: Install dependencies - if: steps.changes.outputs.run_build == 'true' - run: npm ci - - - name: Build - if: steps.changes.outputs.run_build == 'true' - run: npm run build --if-present diff --git a/.github/workflows/dependabot-fix.yml b/.github/workflows/dependabot-fix.yml deleted file mode 100644 index f5a39f9..0000000 --- a/.github/workflows/dependabot-fix.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Fix Dependabot lockfile - -on: - pull_request: - types: [opened, synchronize, reopened] - -permissions: - contents: write - pull-requests: write - -jobs: - regen-lockfile: - if: github.actor == 'dependabot[bot]' - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref }} - fetch-depth: 0 - - - uses: actions/setup-node@v4 - with: - node-version: 24.13.0 - cache: npm - - - name: Pin npm - run: npm i -g npm@11.8.0 - - - name: Regenerate lockfile with repo toolchain - run: | - rm -rf node_modules - npm install --package-lock-only - - - name: Commit lockfile if changed - run: | - if git diff --quiet -- package-lock.json; then - echo "No lockfile changes" - exit 0 - fi - - git config user.name "dependabot[bot]" - git config user.email "49699333+dependabot[bot]@users.noreply.github.com" - git add package-lock.json - git commit -m "chore(deps): regenerate lockfile with Node 24 / npm 11.8" - git push diff --git a/.github/workflows/sync-dev.yml b/.github/workflows/sync-dev.yml deleted file mode 100644 index 5ac28b3..0000000 --- a/.github/workflows/sync-dev.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Sync development branch with master - -on: - push: - branches: [ master ] - -permissions: - contents: write - -jobs: - sync: - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v6 - with: - fetch-depth: 0 - - - name: Fast-forward development to master - run: | - set -euo pipefail - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - - git fetch origin master development - - git checkout -B development origin/development || git checkout -b development - - git merge --ff-only origin/master - - git push origin development diff --git a/.github/workflows/workflow-lint.yml b/.github/workflows/workflow-lint.yml deleted file mode 100644 index f4cc279..0000000 --- a/.github/workflows/workflow-lint.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Workflow Lint - -on: - workflow_dispatch: - pull_request: - branches: [ master ] - paths: - - ".github/workflows/**" - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - - uses: rhysd/actionlint@v1.7.10