mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-28 04:36:11 +01:00
fdf71460f9
- Add detection for swagger changes and run `lint-swagger` on it - Remove `lint-swagger` from `lint-frontend` - Remove `lint-md` from `lint-frontend`
72 lines
1.8 KiB
YAML
72 lines
1.8 KiB
YAML
name: files-changed
|
|
|
|
on:
|
|
workflow_call:
|
|
outputs:
|
|
backend:
|
|
value: ${{ jobs.detect.outputs.backend }}
|
|
frontend:
|
|
value: ${{ jobs.detect.outputs.frontend }}
|
|
docs:
|
|
value: ${{ jobs.detect.outputs.docs }}
|
|
actions:
|
|
value: ${{ jobs.detect.outputs.actions }}
|
|
templates:
|
|
value: ${{ jobs.detect.outputs.templates }}
|
|
docker:
|
|
value: ${{ jobs.detect.outputs.docker }}
|
|
swagger:
|
|
value: ${{ jobs.detect.outputs.swagger }}
|
|
|
|
jobs:
|
|
detect:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 3
|
|
outputs:
|
|
backend: ${{ steps.changes.outputs.backend }}
|
|
frontend: ${{ steps.changes.outputs.frontend }}
|
|
docs: ${{ steps.changes.outputs.docs }}
|
|
actions: ${{ steps.changes.outputs.actions }}
|
|
templates: ${{ steps.changes.outputs.templates }}
|
|
docker: ${{ steps.changes.outputs.docker }}
|
|
swagger: ${{ steps.changes.outputs.swagger }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: dorny/paths-filter@v2
|
|
id: changes
|
|
with:
|
|
filters: |
|
|
backend:
|
|
- "**/*.go"
|
|
- "templates/**/*.tmpl"
|
|
- "go.mod"
|
|
- "go.sum"
|
|
- "Makefile"
|
|
|
|
frontend:
|
|
- "**/*.js"
|
|
- "web_src/**"
|
|
- "package.json"
|
|
- "package-lock.json"
|
|
- "Makefile"
|
|
|
|
docs:
|
|
- "**/*.md"
|
|
- "docs/**"
|
|
|
|
actions:
|
|
- ".github/workflows/*"
|
|
|
|
templates:
|
|
- "templates/**/*.tmpl"
|
|
- "poetry.lock"
|
|
|
|
docker:
|
|
- "Dockerfile"
|
|
- "Dockerfile.rootless"
|
|
- "docker/**"
|
|
- "Makefile"
|
|
|
|
swagger:
|
|
- "templates/swagger/v1_json.tmpl"
|