-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Merge the file filters into `files-changed.yml` - Remove unused yaml anchors like `&backend` - Merge the `compliance-docs` workflow into `compliance` - Add actions linting - Misc cleanups for whitespace and step names
- Loading branch information
1 parent
e64c2fa
commit d783384
Showing
4 changed files
with
59 additions
and
51 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,53 @@ | ||
name: files changed | ||
name: files-changed | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
docs: | ||
description: "whether docs files changed" | ||
value: ${{ jobs.files-changed.outputs.docs }} | ||
backend: | ||
description: "whether backend files changed" | ||
value: ${{ jobs.files-changed.outputs.backend }} | ||
value: ${{ jobs.detect.outputs.backend }} | ||
frontend: | ||
description: "whether frontend files changed" | ||
value: ${{ jobs.files-changed.outputs.frontend }} | ||
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 }} | ||
|
||
jobs: | ||
files-changed: | ||
detect: | ||
name: detect which files changed | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 3 | ||
# Map a step output to a job output | ||
outputs: | ||
docs: ${{ steps.changes.outputs.docs }} | ||
backend: ${{ steps.changes.outputs.backend }} | ||
frontend: ${{ steps.changes.outputs.frontend }} | ||
docs: ${{ steps.changes.outputs.docs }} | ||
actions: ${{ steps.changes.outputs.actions }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Check for backend file changes | ||
uses: dorny/paths-filter@v2 | ||
- uses: dorny/paths-filter@v2 | ||
id: changes | ||
with: | ||
filters: .github/file-filters.yml | ||
filters: | | ||
backend: | ||
- "**/*.go" | ||
- "**/*.tmpl" | ||
- "go.mod" | ||
- "go.sum" | ||
frontend: | ||
- "**/*.js" | ||
- "web_src/**" | ||
- "package.json" | ||
- "package-lock.json" | ||
docs: | ||
- "**/*.md" | ||
- "docs/**" | ||
actions: | ||
- ".github/workflows/*" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters