Skip to content

Commit b3fbd4a

Browse files
committed
workflow
1 parent e0d86d6 commit b3fbd4a

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/ops-toolkit.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

0 commit comments

Comments
 (0)