diff --git a/.github/labeler.yml b/.github/labeler.yml index 37ab04b71d..4a2fa04d4b 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,8 +1,11 @@ documentation: -- doc/source/**/* +- changed-files: + - any-glob-to-any-file: 'docs/source/**/*' maintenance: -- .github/**/* -- .flake8 -- pyproject.toml +- changed-files: + - any-glob-to-any-file: '.github/**/*' + - any-glob-to-any-file: '.flake8' + - any-glob-to-any-file: 'pyproject.toml' testing: -- tests/* +- changed-files: + - any-glob-to-any-file: 'tests/*' diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index c13be86e1a..2342849371 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -32,10 +32,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