mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-28 01:58:20 +01:00
1a0a205466
- Reduce `pyproject.toml` and `package.json` to the minimal required format, removing unneeded properties. `build-system` is not needed as per [this](https://github.com/python-poetry/poetry/issues/8110#issuecomment-1595846841). - Fix `poetry.toml` options they were wrong previously. - Add dependencies of poetry files to templates `files-changed`. --------- Co-authored-by: Giteabot <teabot@gitea.io>
62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
name: files-changed
|
|
|
|
on:
|
|
workflow_call:
|
|
outputs:
|
|
backend:
|
|
description: "whether backend files changed"
|
|
value: ${{ jobs.detect.outputs.backend }}
|
|
frontend:
|
|
description: "whether frontend files changed"
|
|
value: ${{ jobs.detect.outputs.frontend }}
|
|
docs:
|
|
description: "whether docs files changed"
|
|
value: ${{ jobs.detect.outputs.docs }}
|
|
actions:
|
|
description: "whether actions files changed"
|
|
value: ${{ jobs.detect.outputs.actions }}
|
|
templates:
|
|
description: "whether templates files changed"
|
|
value: ${{ jobs.detect.outputs.templates }}
|
|
|
|
jobs:
|
|
detect:
|
|
name: detect which files changed
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 3
|
|
# Map a step output to a job output
|
|
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 }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: dorny/paths-filter@v2
|
|
id: changes
|
|
with:
|
|
filters: |
|
|
backend:
|
|
- "**/*.go"
|
|
- "templates/**/*.tmpl"
|
|
- "go.mod"
|
|
- "go.sum"
|
|
|
|
frontend:
|
|
- "**/*.js"
|
|
- "web_src/**"
|
|
- "package.json"
|
|
- "package-lock.json"
|
|
|
|
docs:
|
|
- "**/*.md"
|
|
- "docs/**"
|
|
|
|
actions:
|
|
- ".github/workflows/*"
|
|
|
|
templates:
|
|
- "templates/**/*.tmpl"
|
|
- "poetry.lock"
|