diff --git a/.github/labeler.yml b/.github/labeler.yml index e878be9c1e..296d0574ae 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,16 +1,15 @@ Documentation: -- doc/source/**/* -- examples/**/* +- changed-files: + - any-glob-to-any-file: ['doc/source/**/*', 'examples/**/*'] + Maintenance: -- .github/**/* -- codecov.yml -- .flake8 -- .coveragerc -- ignore_words.txt -- pyproject.toml +- changed-files: + - any-glob-to-any-file: ['.github/**/*', 'codecov.yml', '.flake8', '.coveragerc', 'ignore_words.txt', 'pyproject.toml'] + Dependencies: -- pyproject.toml +- changed-files: + - any-glob-to-any-file: ['pyproject.toml'] + CI/CD: -- docker/**/* -- .github/**/* -- .ci/**/* +- changed-files: + - any-glob-to-any-file: ['docker/**/*', '.github/**/*', '.ci/**/*'] diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 61d96413ad..415b92738e 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -34,10 +34,10 @@ jobs: # Label based on modified files - name: Label based on changed files - uses: actions/labeler@v4 + uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" - sync-labels: '' + sync-labels: true # Label based on branch name - uses: actions-ecosystem/action-add-labels@v1