Skip to content

Commit c7ee1ab

Browse files
authored
Merge pull request #368 from ajeetraina/master
script added
2 parents 7b2207d + 7d3eb52 commit c7ee1ab

File tree

2 files changed

+40
-0
lines changed

2 files changed

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

scripts/discover_tools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
400: Invalid request

0 commit comments

Comments
 (0)