actions / labeler

An action for automatically labelling pull requests
MIT License
1.98k stars 418 forks source link

Very slow when many files match filter #798

Open jnicoulaud-ledger opened 4 months ago

jnicoulaud-ledger commented 4 months ago

Description: We use the action on a repository that contains 10K+ files, with filters:

assets:
  - changed-files:
      - any-glob-to-any-file: ['inputs/**', 'outputs/**']

When many files changes, the action runs very slow (up to 30 minutes for 10K+ files). It looks like the implementation goes over all files instead of stopping as soon as one is matched.

Action version: v5.0.0

Platform:

Runner type:

Repro steps:

Expected behavior: Action runs in a few seconds

Actual behavior: Action runs very slow

priyagupta108 commented 4 months ago

Hello @jnicoulaud-ledger👋, Thank you for reporting this. We will investigate it and get back to you as soon as we have some feedback.