-
Notifications
You must be signed in to change notification settings - Fork 57
34 lines (31 loc) · 921 Bytes
/
eval-script.yaml
File metadata and controls
34 lines (31 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Eval script
on:
pull_request_target:
branches: [ master ]
jobs:
eval:
runs-on: [self-hosted, linux]
steps:
- name: Clean folder
run: rm -f results.zip
- name: Download results.zip
run: |
for x in {0..4}; do
wget https://github.com/$GITHUB_ACTOR/GLUECoS/raw/$GITHUB_HEAD_REF/results.zip -O results.zip || true
if [ -f results.zip ]; then
echo "Result downloaded"
break
else
sleep 5
if [ $x -eq 4 ]; then
echo "Downloading results.zip failed"
exit 1
else
echo "Trying download again"
fi
fi
done
- name: Copy eval scripts
run: cp -r /root/code/ eval/
- name: Run Eval
run: cd eval && ./eval.sh ../results.zip