Daily update RMM lists #3359
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |