From 5d1a2990e13cb60360e907590a8c57e9f2ff8717 Mon Sep 17 00:00:00 2001 From: adamw Date: Thu, 11 Jul 2024 13:34:04 +0200 Subject: [PATCH] Attach labels to steward PRs which change examples, remove the 1-file-only requirement --- .github/labeler.yml | 2 ++ .github/workflows/ci.yml | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index e703eeb11c..560a28fc68 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -6,9 +6,11 @@ labels: - "build.sbt" - "project/Versions.scala" - "project/plugins.sbt" + - "examples\\/src\\/main\\/scala\\/.*" - label: "dependency" authors: ["softwaremill-ci"] files: - "build.sbt" - "project/Versions.scala" - "project/plugins.sbt" + - "examples\\/src\\/main\\/scala\\/.*" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c1855b099..1e3b48d6ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -216,15 +216,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 2 - # count number of files changed - - name: Count number of files changed - id: count-changed-files - run: | - N=$(git diff --name-only -r HEAD^1 HEAD | wc -w) - echo "changed_files_num=$N" >> $GITHUB_OUTPUT - name: Launch labeler - # skip if more than one file changed - if: steps.count-changed-files.outputs.changed_files_num == 1 uses: srvaroa/labeler@master env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"