Skip to content

Commit a8b2beb

Browse files
committed
Update workflow
1 parent d7bdddd commit a8b2beb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/evaluate.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Evaluate RAG answer flow
33
on:
44
issue_comment:
55
types: [created]
6-
workflow_dispatch:
76

87
# Set up permissions for deploying with secretless Azure federated credentials
98
# https://learn.microsoft.com/azure/developer/github/connect-from-azure?tabs=azure-portal%2Clinux#set-up-azure-login-with-openid-connect-authentication
@@ -15,6 +14,10 @@ permissions:
1514

1615
jobs:
1716
evaluate:
17+
if: |
18+
contains('["OWNER", "CONTRIBUTOR", "COLLABORATOR", "MEMBER"]', github.event.comment.author_association) &&
19+
github.event.issue.pull_request &&
20+
github.event.comment.body == '/evaluate'
1821
runs-on: ubuntu-latest
1922
env:
2023
# azd required

0 commit comments

Comments
 (0)