Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate labeling and CI conditional execution #44

Merged
merged 1 commit into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ci:
- changed-files:
- any-glob-to-any-file:
- .github/**

frontend:
- changed-files:
- any-glob-to-any-file:
- frontend/**

backend:
- changed-files:
- any-glob-to-any-file:
- backend/**
3 changes: 3 additions & 0 deletions .github/workflows/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
pull_request:
branches:
- main
paths:
- "backend/**"
- ".github/workflows/**"

env:
CARGO_TERM_COLOR: always
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ on:
pull_request:
branches:
- main
paths:
- "frontend/**"
- ".github/workflows/**"

env:
CI: true

jobs:
test:
name: test
ci:
name: ci
runs-on: ubuntu-latest
defaults:
run:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "pull request labeler"
on:
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
configuration-path: .github/labeler.yaml
Loading