-
Notifications
You must be signed in to change notification settings - Fork 382
35 lines (29 loc) · 1.02 KB
/
auto-reply.yml
File metadata and controls
35 lines (29 loc) · 1.02 KB
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
name: Auto Reply to Discussion Comments
on:
discussion_comment:
types: [created]
jobs:
reply:
runs-on: ubuntu-latest
if: >
github.event.comment.user.login != 'github-actions[bot]' &&
contains(github.event.discussion.title, '(Project ')
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Clone wiki
run: git clone --depth 1 https://github.com/${{ github.repository }}.wiki.git wiki || true
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v2
- name: Run auto-reply bot
uses: matlab-actions/run-command@v2
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
DISCUSSION_NUMBER: ${{ github.event.discussion.number }}
COMMENT_NODE_ID: ${{ github.event.comment.node_id }}
REPO_FULL_NAME: ${{ github.repository }}
with:
command: addpath('.github/scripts'); auto_reply