File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Auto-Discover Kubernetes Tools
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 9 * * *' # Daily at 9 AM UTC
6+ workflow_dispatch : # Manual trigger
7+
8+ jobs :
9+ discover :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v3
14+
15+ - name : Setup Python
16+ uses : actions/setup-python@v4
17+ with :
18+ python-version : ' 3.9'
19+
20+ - name : Install dependencies
21+ run : pip install requests
22+
23+ - name : Run Tool Discovery
24+ env :
25+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26+ run : |
27+ python scripts/discover_tools.py
28+
29+ - name : Create Issue for New Tools
30+ if : success()
31+ env :
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ run : |
34+ if ls discovered_tools_*.json 1> /dev/null 2>&1; then
35+ echo "New tools discovered! Creating issue..."
36+ python scripts/create_tool_issue.py
37+ else
38+ echo "No new tools found today."
39+ fi
Original file line number Diff line number Diff line change 1+ 400 : Invalid request
You can’t perform that action at this time.
0 commit comments