mirror of
https://github.com/nubenetes/awesome-kubernetes.git
synced 2026-07-13 18:30:44 +00:00
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>
82 lines
2.6 KiB
YAML
82 lines
2.6 KiB
YAML
name: 09. Weekly Intelligence Digest
|
|
|
|
on:
|
|
schedule:
|
|
# Every Monday at 06:00 UTC (08:00 Madrid time)
|
|
- cron: '0 6 * * 1'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
concurrency:
|
|
group: develop-git-write-lock
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
weekly-digest:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Repository Synchronization
|
|
uses: actions/checkout@v7
|
|
with:
|
|
ref: develop
|
|
fetch-depth: 0
|
|
|
|
- name: Python 3.11 Environment Provisioning
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.11'
|
|
cache: 'pip'
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install --no-cache-dir pydantic PyGithub httpx fake-useragent pytz python-dotenv pyyaml tenacity
|
|
pip install -r requirements.txt
|
|
|
|
- name: Generate News Digest (Incremental)
|
|
env:
|
|
PYTHONPATH: ${{ github.workspace }}
|
|
GEMINI_API_KEY_1: ${{ secrets.GEMINI_API_KEY_1 }}
|
|
GEMINI_API_KEY_2: ${{ secrets.GEMINI_API_KEY_2 }}
|
|
run: |
|
|
# Incremental engine: reuses stored results for unchanged categories.
|
|
# On Monday, only categories with new entries since the last run
|
|
# (or older than MAX_STALENESS_DAYS=30) trigger Gemini API calls.
|
|
python -u -m src.news_digest
|
|
|
|
- name: Generate RSS Feed
|
|
env:
|
|
PYTHONPATH: ${{ github.workspace }}
|
|
run: |
|
|
python -u -m src.rss_generator || echo "RSS generation skipped"
|
|
|
|
- name: Render V2 Portal (Digest Pages Only)
|
|
env:
|
|
PYTHONPATH: ${{ github.workspace }}
|
|
PYTHONUNBUFFERED: "1"
|
|
run: |
|
|
python -u -m src.v2_optimizer --render-only
|
|
|
|
- name: Commit and Push Weekly Digest
|
|
run: |
|
|
git config --global user.name "Nubenetes Bot"
|
|
git config --global user.email "bot@nubenetes.com"
|
|
git add data/news_digest.json v2-docs/tech-digest.md v2-docs/industry-digest.md v2-docs/feed.xml || true
|
|
if git diff --staged --quiet; then
|
|
echo "No digest changes to commit."
|
|
else
|
|
git commit -m "feat: weekly intelligence digest update [skip ci]"
|
|
for i in {1..3}; do
|
|
git pull origin develop --rebase && git push origin develop && break || sleep 10
|
|
done
|
|
fi
|
|
|
|
- name: Trigger V2 Publisher
|
|
uses: peter-evans/repository-dispatch@v4
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
event-type: weekly-digest-ready
|