From 15ff233ab8cf97c070577dfdf60694a2f40deb92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Wed, 14 Aug 2024 14:07:05 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Update=20GitHub=20Action=20label?= =?UTF-8?q?er=20to=20only=20add=20one=20label?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/labeler.yml | 31 ++++++++++++++++++++----------- .github/workflows/labeler.yml | 5 +++-- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 168aca1c..692e2074 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,14 +1,23 @@ docs: - - changed-files: - - any-glob-to-any-file: - - README.md + - all: + - changed-files: + - any-glob-to-any-file: + - README.md + - all-globs-to-all-files: + - '!src/**' + - '!pyproject.toml' internal: - - changed-files: - - any-glob-to-any-file: - - .github/**/* - - scripts/**/* - - .gitignore - - .pre-commit-config.yaml - - pdm_build.py - - requirements*.txt + - all: + - changed-files: + - any-glob-to-any-file: + - .github/** + - scripts/** + - .gitignore + - .pre-commit-config.yaml + - pdm_build.py + - requirements*.txt + - all-globs-to-all-files: + - README.md + - '!src/**' + - '!pyproject.toml' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 7c5b4616..d62f1668 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,4 +1,4 @@ -name: Pull Request Labeler and Checker +name: Labels on: pull_request_target: types: @@ -17,13 +17,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/labeler@v5 + with: + sync-labels: true # Run this after labeler applied labels check-labels: needs: - labeler permissions: pull-requests: read - name: Check labels runs-on: ubuntu-latest steps: - uses: docker://agilepathway/pull-request-label-checker:latest