From a8a08fdebf45c83067da0ee4aa57200d41d95658 Mon Sep 17 00:00:00 2001 From: engeir Date: Sun, 8 Dec 2024 16:44:47 +0100 Subject: [PATCH 1/2] ci: fix labels workflow --- .github/labels.yml | 1 - .github/workflows/labeler.yml | 14 ++++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/labels.yml b/.github/labels.yml index 412d971b2..e3b5d7b09 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -1,4 +1,3 @@ ---- # Labels names are important as they are used by Release Drafter to decide # regarding where to record them in changelog or if to skip them. # diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 47d764224..2f860115d 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,18 +1,24 @@ name: Labeler - on: push: branches: - main - + paths: + - '.github/labels.yml' + - '.github/workflows/labeler.yml' + pull_request: + paths: + - '.github/labels.yml' + - '.github/workflows/labeler.yml' jobs: labeler: runs-on: ubuntu-latest steps: - name: Check out the repository uses: actions/checkout@v4 - - name: Run Labeler - uses: crazy-max/ghaction-github-labeler@v5.1.0 + uses: crazy-max/ghaction-github-labeler@v5 with: + yaml-file: .github/labels.yml + dry-run: ${{ github.event_name == 'pull_request' }} skip-delete: true From 4ee258c9fd87baefa18d753ced7bcca72d5d7d51 Mon Sep 17 00:00:00 2001 From: engeir Date: Sun, 8 Dec 2024 16:49:47 +0100 Subject: [PATCH 2/2] style: format --- .github/workflows/labeler.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 2f860115d..0e212e432 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -4,12 +4,12 @@ on: branches: - main paths: - - '.github/labels.yml' - - '.github/workflows/labeler.yml' + - ".github/labels.yml" + - ".github/workflows/labeler.yml" pull_request: paths: - - '.github/labels.yml' - - '.github/workflows/labeler.yml' + - ".github/labels.yml" + - ".github/workflows/labeler.yml" jobs: labeler: runs-on: ubuntu-latest