Skip to content

Commit

Permalink
Fix : condition for PR tag check
Browse files Browse the repository at this point in the history
  • Loading branch information
AdarshRawat1 committed Aug 5, 2024
1 parent 4e15393 commit ce33ff9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const hasDocumentationLabel = contains(github.event.pull_request.labels.*.name, 'documentation')
return hasDocumentationLabel;
const labels = github.event.pull_request.labels.map(label => label.name);
return labels.includes('documentation');
result-encoding: string

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

0 comments on commit ce33ff9

Please sign in to comment.