-
-
Notifications
You must be signed in to change notification settings - Fork 83
43 lines (35 loc) · 1.02 KB
/
Update_RMM_lists.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
35
36
37
38
39
40
41
42
43
name: Daily update RMM lists
on:
schedule:
- cron: '10 * * * *' # Runs every day
workflow_dispatch:
jobs:
fetch-RMM-list:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests pandas
- name: Run scripts from the RMM folder
run: |
cd Lists/RMM
python update_RMM_detection.py
- name: List files
run: ls -la
- name: List files in the Lists/RMM directory
run: ls -la Lists/RMM
- name: Commit and Push results
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git pull
git add Lists/RMM/*
git commit -m "Update RMM List Daily" --allow-empty
git push