Skip to content

Commit ce33ff9

Browse files
committed
Fix : condition for PR tag check
1 parent 4e15393 commit ce33ff9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ jobs:
4141
uses: actions/github-script@v6
4242
with:
4343
script: |
44-
const hasDocumentationLabel = contains(github.event.pull_request.labels.*.name, 'documentation')
45-
return hasDocumentationLabel;
44+
const labels = github.event.pull_request.labels.map(label => label.name);
45+
return labels.includes('documentation');
46+
result-encoding: string
4647

4748
- name: Find Existing Comment
4849
if: ${{ github.event_name == 'pull_request_target' && steps.check-label.outputs.result == 'true' }}

0 commit comments

Comments
 (0)