File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : IT Ops Toolkit Checks
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ jobs :
10+ run-ops-tools :
11+ name : Run Health Check & Log Analyzer
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout repository
16+ uses : actions/checkout@v4
17+
18+ - name : Make health_check.sh executable
19+ run : chmod +x it_ops_automation_toolkit/scripts/health_check.sh
20+
21+ - name : Run health check script
22+ run : |
23+ ./it_ops_automation_toolkit/scripts/health_check.sh \
24+ | tee health_check_output.txt
25+
26+ - name : Run log analyzer
27+ run : |
28+ python3 it_ops_automation_toolkit/scripts/log_analyzer.py \
29+ it_ops_automation_toolkit/data/app.log \
30+ | tee log_analysis_output.txt
31+
32+ - name : Upload results as artifacts
33+ uses : actions/upload-artifact@v4
34+ with :
35+ name : ops-toolkit-results
36+ path : |
37+ health_check_output.txt
38+ log_analysis_output.txt
You can’t perform that action at this time.
0 commit comments