From d4a7f09df66764f45d0947ba6219d2143075b424 Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Tue, 5 May 2026 14:10:33 +0200 Subject: [PATCH] chore: cleanup unused workflows --- .github/workflows/ci-requirements.yaml | 82 -------------------------- .github/workflows/docs.yaml | 74 ----------------------- .github/workflows/python.yaml | 29 --------- 3 files changed, 185 deletions(-) delete mode 100644 .github/workflows/ci-requirements.yaml delete mode 100644 .github/workflows/docs.yaml delete mode 100644 .github/workflows/python.yaml diff --git a/.github/workflows/ci-requirements.yaml b/.github/workflows/ci-requirements.yaml deleted file mode 100644 index 96ad0cd..0000000 --- a/.github/workflows/ci-requirements.yaml +++ /dev/null @@ -1,82 +0,0 @@ -name: CI Requirement Checks -on: - push: - branches: - - "**" - workflow_call: - inputs: - runner: - required: false - description: Runner type - default: ubuntu-latest - type: string - outputs: - full_run_required: - description: Whether a full pipeline run is required - value: ${{ jobs.requirements.outputs.full_run_required }} - test_run_required: - description: Whether a test run is required - value: ${{ jobs.requirements.outputs.test_run_required }} -jobs: - requirements: - runs-on: ${{ inputs.runner || 'ubuntu-latest' }} - outputs: - full_run_required: ${{ steps.check_full_run_required.outputs.full_run_required }} - test_run_required: ${{ steps.check_test_run_required.outputs.test_run_required }} - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Check full pipeline run required - id: check_full_run_required - run: | - base="${{ github.event.before }}" - if [ -z "$base" ] || [ "$base" = "0000000000000000000000000000000000000000" ]; then - base="HEAD^" - fi - if git diff --name-only "$base" HEAD | grep -qvE '^(\.chart|\.github)/'; then - echo "full_run_required=true" >> "$GITHUB_OUTPUT" - else - echo "full_run_required=false" >> "$GITHUB_OUTPUT" - fi - - - name: Check tests run required - id: check_test_run_required - uses: dorny/paths-filter@v4 - with: - predicate-quantifier: "some" - filters: | - test_run_required: - # Python / Django - - "**.py" - - "requirements*.txt" - - "pyproject.toml" - - "setup.cfg" - - "Pipfile" - - "Pipfile.lock" - - "poetry.lock" - - "uv.lock" - - "tox.ini" - - "pytest.ini" - - "**.html" - - "templates/**" - # JavaScript / TypeScript - - "**.js" - - "**.jsx" - - "**.ts" - - "**.tsx" - - "**.mjs" - - "**.cjs" - - "**.vue" - - "**.svelte" - - "package.json" - - "package-lock.json" - - "yarn.lock" - - "pnpm-lock.yaml" - - "tsconfig*.json" - - "jest.config.*" - - "vitest.config.*" - - "babel.config.*" - - "vite.config.*" - - "webpack.config.*" diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml deleted file mode 100644 index f11cc65..0000000 --- a/.github/workflows/docs.yaml +++ /dev/null @@ -1,74 +0,0 @@ -name: Reusable Docs -on: - workflow_call: - inputs: - botEmail: - required: false - description: The email of the bot that will appear in the GitOps commit - default: dev.bot@parcellab.com - type: string - botName: - required: false - description: The name of the bot that will appear in the GitOps commit - default: parcellab-dev-bot - type: string - defaultBranch: - required: false - description: The default branch - default: main - type: string - docsRepo: - required: false - description: The repository within Github that holds the central documentation files - default: parcelLab/documentation - type: string - runner: - required: false - description: Runner type - default: ubuntu-latest - type: string - secrets: - repoAccessToken: - required: true - description: The Github token to perform operations cross-repo (not github.token!) -jobs: - jekyll: - if: github.ref == 'refs/heads/${{ inputs.defaultBranch }}' - runs-on: ${{ inputs.runner }} - steps: - - name: Load workflow variables - id: vars - run: | - # shellcheck disable=SC2086 - echo "docs-push-folder=${{ github.workspace }}/remote/repos/${{ github.event.repository.name }}" >> $GITHUB_OUTPUT - - name: Checkout current git repository - uses: actions/checkout@v3 - with: - path: this - - name: Checkout ${{ inputs.docsRepo }} git repository - uses: actions/checkout@v3 - with: - path: remote - ref: main - repository: ${{ inputs.docsRepo }} - token: ${{ secrets.repoAccessToken }} - - name: Commit markdown files - continue-on-error: true - run: | - rm -rf ${{ steps.vars.outputs.docs-push-folder }} - mkdir -p ${{ steps.vars.outputs.docs-push-folder }} - cd ${{ steps.vars.outputs.docs-push-folder }} - git config --global user.email "${{ inputs.botEmail }}" - git config --global user.name "${{ inputs.botName }}" - rsync -am --prune-empty-dirs --include='*.md' --include='.assets/*' --include='*/' --exclude='*' ${{ github.workspace }}/this/${{ steps.vars.outputs.docs-push-folder }} - git add -v . - git commit -m "Update ${{ github.event.repository.name }} repo documentation" - - name: Push changes to ${{ inputs.docsRepo }} git repository - if: success() - uses: ad-m/github-push-action@4cc74773234f74829a8c21bc4d69dd4be9cfa599 - with: - directory: ${{ steps.vars.outputs.docs-push-folder }} - repository: ${{ inputs.docsRepo }} - github_token: ${{ secrets.repoAccessToken }} - branch: ${{ inputs.defaultBranch }} - force: true diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml deleted file mode 100644 index bd65b6d..0000000 --- a/.github/workflows/python.yaml +++ /dev/null @@ -1,29 +0,0 @@ -name: Reusable Python -on: - workflow_call: - inputs: - pythonVersion: - required: false - description: The python version to provide (e.g. `3.x`) - default: 3.x - type: string - runner: - required: false - description: Runner type - default: ubuntu-latest - type: string -jobs: - python: - runs-on: ${{ inputs.runner }} - steps: - - name: Checkout current git repository - uses: actions/checkout@v3 - - uses: actions/setup-python@v6 - with: - python-version: ${{ inputs.pythonVersion }} - - name: Install requirements - run: | - pip install -r requirements.txt - pip install -r requirements-tests.txt - - name: Run unit tests - run: make test