-
-
Notifications
You must be signed in to change notification settings - Fork 85
40 lines (33 loc) · 1.17 KB
/
Update_Microsoft_IP_From_Microsoft.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
name: Daily update Microsoft IP ranges lists
on:
schedule:
- cron: '8 * * * *' # Runs every day
workflow_dispatch:
jobs:
fetch-Microsoft-IP-From-Microsoft-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 lxml[html_clean] requests_html
- name: Run scripts from the Microsoft folder
run: |
cd Lists/Ranges_IP_Address_Company_List/Microsoft
python Get_Microsoft_IP_Ranges_From_Microsoft.py
- name: List files
run: ls -la Lists/Ranges_IP_Address_Company_List/Microsoft
- 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/Ranges_IP_Address_Company_List/Microsoft/*
git commit -m "Update Microsoft IP ranges List Daily" --allow-empty
git push