-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.17 KB
/
make.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
50
51
52
53
54
55
name: Make
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: pip cache
uses: actions/cache@v4
id: pip-cache
with:
path: ~/.cache/pip
key: pip-cache-${{ hashFiles('requirements.txt') }}
restore-keys: pip-cache-
- name: npm cache
uses: actions/cache@v4
with:
path: |
./node_modules
~/.npm
key: npm-cache-${{ hashFiles('package-lock.json') }}
restore-keys: npm-cache-
- name: Install Dependencies
run: |
pip install -r requirements.txt
npm install
- name: Make
run: python ./scripts/main.py
- name: Lint
run: npx aglint filter.txt
- name: Git
run: |
if [ -n "$(git status --porcelain)" ]; then
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "Make"
git push
fi