Skip to content

Commit e88f228

Browse files
committed
Revert "Simplify logic for documentation tag Check"
This reverts commit 4e15393.
1 parent 1f1a3e8 commit e88f228

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ jobs:
4141
uses: actions/github-script@v6
4242
with:
4343
script: |
44-
const hasDocumentationLabel = contains(github.event.pull_request.labels.*.name, 'documentation')
44+
const { data: labels } = await github.rest.issues.listLabelsOnIssue({
45+
owner: context.repo.owner,
46+
repo: context.repo.repo,
47+
issue_number: context.issue.number
48+
});
49+
const hasDocumentationLabel = labels.some(label => label.name === 'documentation');
4550
return hasDocumentationLabel;
4651
4752
- name: Find Existing Comment

0 commit comments

Comments
 (0)