diff --git a/.github/workflows/pr-comments-guard.yml b/.github/workflows/pr-comments-guard.yml index 1001da73e..5761b7169 100644 --- a/.github/workflows/pr-comments-guard.yml +++ b/.github/workflows/pr-comments-guard.yml @@ -10,7 +10,9 @@ permissions: jobs: comment-only: name: Ensure Only Comments Change (${{ matrix.mode }}) # Include active mode in job name for clearer logs. - if: contains(github.event.pull_request.labels.*.name, 'comments translation') + if: >- + contains(github.event.pull_request.labels.*.name, 'comments translation') + || (github.event.action == 'labeled' && github.event.label.name == 'comments translation') strategy: # Expand the job to cover both evaluation modes. fail-fast: false # Make sure the relaxed run completes even if the strict mode fails first. matrix: