Skip to content

Commit

Permalink
fixed CI/CD action for labeling pushes to main
Browse files Browse the repository at this point in the history
  • Loading branch information
alhasacademy96 committed Oct 16, 2024
1 parent 65c093e commit d3507fe
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 15 deletions.
16 changes: 16 additions & 0 deletions .github/.github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
core:
- 'animal-ai/**'

# Label for changes in documentation files
documentation:
- '**/*.md'
- 'docs/**'

# Label for changes related to CI/CD workflows
ci:
- '.github/workflows/**'

# Label for YAML configuration changes
configuration:
- '**/*.yaml'
- '**/*.yml'
43 changes: 28 additions & 15 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@
# Label for changes in the core application code
core:
- 'animal-ai/*'
name: "Label PRs based on changes"

# Label for changes in documentation files
documentation:
- '**/*.md'
- 'docs/**'
on:
push:
branches:
- main
paths:
- 'animal-ai/**'
- '**/*.md'
- 'docs/**'
- '.github/workflows/**'
- '**/*.yaml'
- '**/*.yml'
pull_request:
paths:
- 'animal-ai/**'
- '**/*.md'
- 'docs/**'
- '.github/workflows/**'
- '**/*.yaml'
- '**/*.yml'

# Label for changes related to CI/CD workflows
ci:
- '.github/workflows/**'

# Label for YAML configuration changes
configuration:
- '**/*.yaml'
- '**/*.yml'
jobs:
labeler:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/labeler@v2
with:
configuration-path: .github/labeler.yml

0 comments on commit d3507fe

Please sign in to comment.