Skip to content

Commit

Permalink
Attach labels to steward PRs which change examples, remove the 1-file…
Browse files Browse the repository at this point in the history
…-only requirement
  • Loading branch information
adamw committed Jul 11, 2024
1 parent 47f8666 commit 5d1a299
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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\\/.*"
8 changes: 0 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit 5d1a299

Please sign in to comment.