Skip to content

Commit 062e9b8

Browse files
committed
Base on comment
1 parent a197f3c commit 062e9b8

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

.github/workflows/evaluate.yaml

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ permissions:
1818

1919
jobs:
2020
evaluate:
21-
# if: |
22-
# contains('["OWNER", "CONTRIBUTOR", "COLLABORATOR", "MEMBER"]', github.event.comment.author_association) &&
23-
# github.event.issue.pull_request &&
24-
# github.event.comment.body == '/evaluate'
21+
if: |
22+
contains('["OWNER", "CONTRIBUTOR", "COLLABORATOR", "MEMBER"]', github.event.comment.author_association) &&
23+
github.event.issue.pull_request &&
24+
github.event.comment.body == '/evaluate'
2525
runs-on: ubuntu-latest
2626
env:
2727
# azd required
@@ -116,23 +116,21 @@ jobs:
116116
USE_MEDIA_DESCRIBER_AZURE_CU: ${{ vars.USE_MEDIA_DESCRIBER_AZURE_CU }}
117117
steps:
118118

119-
# - name: Comment on pull request
120-
# uses: actions/github-script@v7
121-
# with:
122-
# script: |
123-
# github.rest.issues.createComment({
124-
# issue_number: context.issue.number,
125-
# owner: context.repo.owner,
126-
# repo: context.repo.repo,
127-
# body: "Starting evaluation! Check the Actions tab for progress, or wait for a comment with the results."
128-
# })
129-
130-
# - name: Checkout pull request
131-
# uses: actions/checkout@v4
132-
# with:
133-
# ref: refs/pull/${{ github.event.issue.number }}/head
134-
135-
- uses: actions/checkout@v4
119+
- name: Comment on pull request
120+
uses: actions/github-script@v7
121+
with:
122+
script: |
123+
github.rest.issues.createComment({
124+
issue_number: context.issue.number,
125+
owner: context.repo.owner,
126+
repo: context.repo.repo,
127+
body: "Starting evaluation! Check the Actions tab for progress, or wait for a comment with the results."
128+
})
129+
130+
- name: Checkout pull request
131+
uses: actions/checkout@v4
132+
with:
133+
ref: refs/pull/${{ github.event.issue.number }}/head
136134

137135
- name: Install uv
138136
uses: astral-sh/setup-uv@v5

0 commit comments

Comments
 (0)