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 }}"