-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (30 loc) · 898 Bytes
/
push.yml
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
name: "Upload agent code"
on:
push:
branches:
- master
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Send code
run: python3 scripts/post.py main.lua
add-feedback-comment:
needs: upload
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Collect feedback
run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
echo "feedback<<$EOF" >> "$GITHUB_OUTPUT"
echo "# Auto-generated feedback" >> "$GITHUB_OUTPUT"
python3 scripts/summary.py >> "$GITHUB_OUTPUT"
python3 scripts/get_ranking.py >> "$GITHUB_OUTPUT"
echo "$EOF" >> "$GITHUB_OUTPUT"
id: generate-commit-message
- name: Create commit comment
uses: peter-evans/commit-comment@v2
with:
body: ${{ steps.generate-commit-message.outputs.feedback }}