-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 1.01 KB
/
create-matrix.yaml
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
name: Get Kernel list and save matrix
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r scripts/requirements.txt
- name: Get kernel list
run: python scripts/kernels.py
- name: Update matrix file
run: python scripts/re-matrix.py
- name: Commit kernel list updates
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
if git diff --quiet; then
echo "No changes detected. Skipping commit and push."
else
git add data
git commit -m "Updating the kernel version list"
git push
fi