-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.17 KB
/
ai-bot.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
44
45
46
47
48
49
name: Ai-bot
on:
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
defaults:
run:
working-directory: './'
steps:
- name: 'Git – set working directory'
run: echo "$HOME" >> $GITHUB_PATH
- name: 'Git – checkout'
uses: actions/checkout@v4
with:
submodules: recursive
# - name: 'Git – checkout suptools'
# uses: actions/checkout@v4
# with:
# repository: Sup2point0/suptools
# path: suptools
- name: 'Python – setup'
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: 'Python – restore cache'
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-
- name: 'Python – install packages'
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: 'Python – execute'
env:
LINK: ${{ secrets.LINK }}
# run: python disc/__main__.py
run: cd disc && python __main__.py