mirror of
https://github.com/nubenetes/awesome-kubernetes.git
synced 2026-05-22 09:03:23 +00:00
74 lines
2.4 KiB
YAML
74 lines
2.4 KiB
YAML
name: Nubenetes V2 Agentic Builder
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
force_reevaluate:
|
|
description: 'Force AI re-evaluation (ignores cache for tags/years)'
|
|
type: boolean
|
|
default: false
|
|
activate_backup_key:
|
|
description: 'Activate Identity B (Subscription) as backup/rotation'
|
|
type: boolean
|
|
default: false
|
|
# Automatic detection: Sync V2 whenever V1 archive is updated (manual or automated)
|
|
push:
|
|
branches: [ develop ]
|
|
paths:
|
|
- 'docs/**'
|
|
# Support automated sync after curation run
|
|
workflow_run:
|
|
workflows: ["Nubenetes Automated Agentic Curation"]
|
|
types:
|
|
- completed
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
build-v2-edition:
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
|
|
steps:
|
|
- name: Repository Synchronization
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: develop
|
|
|
|
- name: Python 3.11 Environment Provisioning
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Installation of Dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install --no-cache-dir pydantic PyGithub httpx fake-useragent pytz python-dotenv pyyaml
|
|
|
|
- name: Run V2 Agentic Optimizer
|
|
env:
|
|
GEMINI_API_KEY_1: ${{ secrets.GEMINI_API_KEY_1 }}
|
|
GEMINI_API_KEY_2: ${{ secrets.GEMINI_API_KEY_2 }}
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
ACTIVATE_BACKUP_KEY: ${{ github.event.inputs.activate_backup_key || 'false' }}
|
|
FORCE_EVAL: ${{ github.event.inputs.force_reevaluate }}
|
|
PYTHONPATH: .
|
|
run: |
|
|
python -u src/v2_optimizer.py
|
|
if [ -f v2_safety_report.md ]; then
|
|
cat v2_safety_report.md >> pr_description.md
|
|
else
|
|
echo "No safety report generated." > pr_description.md
|
|
fi
|
|
|
|
- name: Create Pull Request for V2 Elite Update
|
|
uses: peter-evans/create-pull-request@v6
|
|
with:
|
|
branch: bot/v2-elite-sync
|
|
base: develop
|
|
title: "V2 Elite: Agentic Optimization Sync (2026)"
|
|
body-path: pr_description.md
|
|
commit-message: "feat: sync V2 elite curated edition"
|
|
labels: "v2-elite, agentic-sync"
|