Files
awesome-kubernetes/.github/workflows/01.2.agentic_backup.yml
dependabot[bot] 8441623163 build(deps): bump the action-updates group with 3 updates
Bumps the action-updates group with 3 updates: [actions/checkout](https://github.com/actions/checkout), [actions/cache](https://github.com/actions/cache) and [peter-evans/repository-dispatch](https://github.com/peter-evans/repository-dispatch).


Updates `actions/checkout` from 6 to 7
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

Updates `actions/cache` from 5 to 6
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v5...v6)

Updates `peter-evans/repository-dispatch` from 3 to 4
- [Release notes](https://github.com/peter-evans/repository-dispatch/releases)
- [Commits](https://github.com/peter-evans/repository-dispatch/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: action-updates
- dependency-name: actions/cache
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: action-updates
- dependency-name: peter-evans/repository-dispatch
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: action-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-01 13:18:37 +00:00

57 lines
1.9 KiB
YAML

name: 01.2. Backup-based Curation
on:
workflow_dispatch:
inputs:
backup_file:
description: 'Path to the backup file (JSON or MD) inside the repository'
required: true
default: 'data/backup_posts.json'
historical_mode:
description: 'Activate Historical Mode (Ignores 30-day limit)'
required: false
default: 'true'
type: boolean
permissions:
contents: write
pull-requests: write
jobs:
backup-curation-process:
runs-on: ubuntu-latest
steps:
- name: Repository Synchronization
uses: actions/checkout@v7
- name: Python 3.11 Environment Provisioning
uses: actions/setup-python@v6
with:
python-version: '3.11'
cache: 'pip'
- name: Installation of Dependencies
run: |
python -m pip install --upgrade pip
pip install --no-cache-dir pydantic PyGithub aiohttp beautifulsoup4 httpx fake-useragent pytz python-dotenv twikit>=2.1.2 playwright playwright-stealth tenacity
# Playwright is required because Gemini evaluator or curator might use it indirectly,
# even if backup extraction doesn't strictly need it.
playwright install chromium --with-deps
- name: Agentic Curation Execution (Backup Mode)
env:
GEMINI_API_KEY_1: ${{ secrets.GEMINI_API_KEY_1 }}
GEMINI_API_KEY_2: ${{ secrets.GEMINI_API_KEY_2 }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BACKUP_FILE: ${{ github.event.inputs.backup_file }}
HISTORICAL_MODE: ${{ github.event.inputs.historical_mode }}
PYTHONPATH: .
PYTHONUNBUFFERED: "1"
run: |
if [ ! -f "$BACKUP_FILE" ]; then
echo "❌ ERROR: File '$BACKUP_FILE' not found in repository."
echo "Please upload the file to that path and try again."
exit 1
fi
python src/main.py