Skip to content

Commit 848cb22

Browse files
authored
Update main.yml - added scl and snopud
1 parent 24c2283 commit 848cb22

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ jobs:
3030
repository: davemattson/pse-outage
3131
path: pse-outage
3232
fetch-depth: 10
33+
34+
- name: Checkout the scl repository
35+
uses: actions/checkout@v4
36+
with:
37+
repository: davemattson/scl-outage
38+
path: scl-outage
39+
fetch-depth: 10
40+
41+
- name: Checkout the snopud repository
42+
uses: actions/checkout@v4
43+
with:
44+
repository: davemattson/snopud-outage
45+
path: snopud-outage
46+
fetch-depth: 10
3347

3448
- name: Set up Python
3549
uses: actions/setup-python@v5
@@ -56,3 +70,19 @@ jobs:
5670
python -u expand.py -r ../pse-outage -i -o output_files -l 2 ../pse-outage/pse-events.json
5771
python -u create_outages_dataframe.py -l -d output_files -u pse -o output_files/pse_outages_dataframe.csv
5872
python -u analyze_current_outages.py -f output_files/pse_outages_dataframe.csv -l .5 -c 1 -e .1 -u pse --telegram-token "${PWRONDATABOT_TOKEN}" --telegram-chat-id "-1003012377346" --telegram-thread-id "2" --geocode-api-key "${GEOCODE_API_KEY}"
73+
74+
- name: Run scl notifier
75+
run: |
76+
echo "Running SCL notifier"
77+
pwd
78+
python -u expand.py -r ../scl-outage -i -o output_files -l 2 ../scl-outage/scl-events.json
79+
python -u create_outages_dataframe.py -l -d output_files -u scl -o output_files/scl_outages_dataframe.csv
80+
python -u analyze_current_outages.py -f output_files/scl_outages_dataframe.csv -l .5 -c 1 -e .1 -u scl --telegram-token "${PWRONDATABOT_TOKEN}" --telegram-chat-id "-1003012377346" --telegram-thread-id "2" --geocode-api-key "${GEOCODE_API_KEY}"
81+
82+
- name: Run snopud notifier
83+
run: |
84+
echo "Running snopud notifier"
85+
pwd
86+
python -u expand.py -r ../snopud-outage -i -o output_files -l 2 ../snopud-outage/KMLOutageAreas.xml
87+
python -u create_outages_dataframe.py -l -d output_files -u snopud -o output_files/snopud_outages_dataframe.csv
88+
python -u analyze_current_outages.py -f output_files/snopud_outages_dataframe.csv -l .5 -c 1 -e .1 -u snopud --telegram-token "${PWRONDATABOT_TOKEN}" --telegram-chat-id "-1003012377346" --telegram-thread-id "2" --geocode-api-key "${GEOCODE_API_KEY}"

0 commit comments

Comments
 (0)