From 3b3ad483b711079b71337a7d280de43ab4fbf110 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Fri, 12 Dec 2025 13:33:46 +0100 Subject: [PATCH] ci: refactor to native change detection (#70) Removing the 3rd party dependent "check-changes" job, while keeping the "test" job. Replacing the check-changes with GitHub Action's native "paths" parameter. Reviewed-on: https://gitea.t000-n.de/t.behrendt/ts3gotify/pulls/70 Co-authored-by: Timo Behrendt Co-committed-by: Timo Behrendt --- .gitea/workflows/cd.yaml | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index da335d8..d466d50 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -4,33 +4,18 @@ on: push: branches: - main + paths: + - src/** + - .bun-version + - package.json + - tsconfig.json + - Dockerfile + - bun.lockb env: DOCKER_REGISTRY: gitea.t000-n.de jobs: - check-changes: - name: Check changes - runs-on: ubuntu-latest - outputs: - changes: ${{ steps.filter.outputs.code }} - steps: - - name: Checkout - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 - - - name: Get changed files - id: filter - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3 - with: - filters: | - code: - - 'src/**' - - '.bun-version' - - 'package.json' - - 'tsconfig.json' - - 'Dockerfile' - - 'bun.lockb' - test: name: Test runs-on: ubuntu-latest @@ -58,11 +43,9 @@ jobs: arch: [amd64, arm64] needs: - test - - check-changes runs-on: - ubuntu-latest - linux_${{ matrix.arch }} - if: ${{ needs.check-changes.outputs.changes == 'true' }} steps: - name: Checkout uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5