-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.51 KB
/
auto-discovery.yml
File metadata and controls
53 lines (44 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: OSINT Tools Autodiscovery & Deploy
on:
schedule:
- cron: '0 0 * * 1' # Cada lunes a medianoche
workflow_dispatch: # Ejecución manual
permissions:
contents: write
pages: write
id-token: write
jobs:
discover-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install requests feedparser groq
- name: Run Autodiscovery Script
run: python scripts/discover_tools.py
env:
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit and Push Changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add data/tools.json
git diff --quiet && git diff --staged --quiet || (git commit -m "✨ Update tools directory [skip ci]" && git push)
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.' # Desplegar la raíz del repo (index.html, data/, scripts/ no son necesarios pero no molestan)
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4