-
Notifications
You must be signed in to change notification settings - Fork 110
43 lines (40 loc) · 1.25 KB
/
code-samples-check.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
33
34
35
36
37
38
39
40
41
42
43
name: Code Samples Pull Request Update
on:
pull_request_target:
branches: [ main ]
types: [ opened ]
paths:
- "components/base/base.go"
- "components/board/board.go"
- "components/camera/camera.go"
- "components/motor/motor.go"
- "components/sensor/sensor.go"
- "components/servo/servo.go"
- "components/arm/arm.go"
- "components/audioinput/audio_input.go"
- "components/gantry/gantry.go"
- "components/gripper/gripper.go"
- "components/input/input.go"
- "components/movementsensor/movementsensor.go"
- "components/posetracker/pose_tracker.go"
- "services/motion/motion.go"
- "services/vision/vision.go"
jobs:
comment:
name: "Post Comment on PR"
runs-on: ubuntu-latest
steps:
- name: Get code
uses: actions/checkout@v3
- name: Write Function
uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: python ./etc/code-samples-action.py
- name: Add code samples PR Comment
uses: marocchino/sticky-pull-request-comment@v2
with:
header: Code-Samples Warning
number: ${{ env.PR_NUMBER }}
recreate: true
path: code-samples-warning.md