Skip to content

Commit 1f1a3e8

Browse files
committed
Revert "Fix : condition for PR tag check"
This reverts commit ce33ff9.
1 parent ce33ff9 commit 1f1a3e8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ jobs:
4141
uses: actions/github-script@v6
4242
with:
4343
script: |
44-
const labels = github.event.pull_request.labels.map(label => label.name);
45-
return labels.includes('documentation');
46-
result-encoding: string
44+
const hasDocumentationLabel = contains(github.event.pull_request.labels.*.name, 'documentation')
45+
return hasDocumentationLabel;
4746
4847
- name: Find Existing Comment
4948
if: ${{ github.event_name == 'pull_request_target' && steps.check-label.outputs.result == 'true' }}

0 commit comments

Comments
 (0)