-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (37 loc) · 1.1 KB
/
update_kernel.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
name: Update Kernel
on:
schedule:
- cron: '0 0 * * 0'
# Runs every Sunday at 00:00
workflow_dispatch:
jobs:
update_kernel:
runs-on: ubuntu-latest
steps:
- name: Checkout Scripts Repo
uses: MoeKernel/[email protected]
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get -y --no-install-recommends install python3 python3-pip git make bc ca-certificates git xz-utils
- name: Install Requests Library
run: |
pip install requests load_dotenv
- name: Clone Repo Scripts
uses: MoeKernel/[email protected]
with:
owner: 'MoeKernel'
branch: 'ksu'
repository: 'scripts'
- name: Set up GitHub Token
run: |
echo "TOKEN_GITHUB=${{ secrets.TOKEN_GITHUB }}" >> .env
- name: Github Configs
working-directory: ./scripts
run: |
git config --global user.email "[email protected]"
git config --global user.name "ginkgo"
- name: Run Update Script
working-directory: ./scripts
run: |
python update_kernel.py