-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 904 Bytes
/
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
name: Make
on:
workflow_dispatch:
push:
permissions:
contents: write
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: pip-cache
with:
path: ~/.cache/pip
key: pip-cache-${{ hashFiles('scripts/requirements.txt') }}
restore-keys: pip-cache-
- name: Install Dependencies
if: steps.pip-cache.outputs.cache-hit != 'true'
run: pip install -r ./scripts/requirements.txt
- name: Make
run: python ./scripts/main.py
- 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