ci: switch to native change detection
All checks were successful
CI / test (pull_request) Successful in 2m53s
All checks were successful
CI / test (pull_request) Successful in 2m53s
This commit is contained in:
@@ -4,32 +4,18 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "go.mod"
|
||||
- "go.sum"
|
||||
- "**/*.go"
|
||||
- "config.example.yaml"
|
||||
- "Dockerfile"
|
||||
- "Makefile"
|
||||
|
||||
env:
|
||||
DOCKER_REGISTRY: gitea.t000-n.de
|
||||
|
||||
jobs:
|
||||
check-changes:
|
||||
name: Check changes
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
code: ${{ steps.filter.outputs.code }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
- name: Get changes
|
||||
id: filter
|
||||
uses: dorny/paths-filter@v3
|
||||
with:
|
||||
filters: |
|
||||
code:
|
||||
- 'go.mod'
|
||||
- 'go.sum'
|
||||
- '**/*.go'
|
||||
- 'config.example.yaml'
|
||||
- 'Dockerfile'
|
||||
- 'Makefile'
|
||||
|
||||
test:
|
||||
name: test
|
||||
runs-on: ubuntu-latest
|
||||
@@ -70,8 +56,6 @@ jobs:
|
||||
arch: [amd64, arm64]
|
||||
needs:
|
||||
- test
|
||||
- check-changes
|
||||
if: ${{ needs.check-changes.outputs.code == 'true' }}
|
||||
runs-on:
|
||||
- ubuntu-latest
|
||||
- linux_${{ matrix.arch }}
|
||||
|
||||
Reference in New Issue
Block a user