Skip to content

Daily update RMM lists #1642

Daily update RMM lists

Daily update RMM lists #1642

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 "[email protected]"
git config --local user.name "GitHub Action"
git pull
git add Lists/RMM/*
git commit -m "Update RMM List Daily" --allow-empty
git push