Skip to content

Update README from LinkedIn #23

Update README from LinkedIn

Update README from LinkedIn #23

Workflow file for this run

name: Update README from LinkedIn
on:
# Run manually from the Actions tab
workflow_dispatch:
# Run on a schedule (weekly, every Monday at 06:00 UTC)
schedule:
- cron: "0 6 * * 1"
permissions:
contents: write
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup .NET 10
uses: actions/setup-dotnet@v5
with:
dotnet-version: "10.0.x"
- name: Fetch LinkedIn data, generate README & CV XML
env:
LINKEDIN_ACCESS_TOKEN: ${{ secrets.LINKEDIN_ACCESS_TOKEN }}
run: SKIP_PDF=1 ./src/run.sh
# ── GitHub Stats SVGs (requires GitHub Action, CI-only) ──
- name: Create artifacts directory
run: mkdir -p artifacts/profile
- name: Generate GitHub stats card
uses: soulteary/github-readme-stats-action@v1.0.0
with:
card: stats
options: "username=${{ github.repository_owner }}&show_icons=true&theme=github_dark&hide_border=true&count_private=true"
path: artifacts/profile/stats.svg
token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate top languages card
uses: soulteary/github-readme-stats-action@v1.0.0
with:
card: top-langs
options: "username=${{ github.repository_owner }}&layout=compact&theme=github_dark&hide_border=true&langs_count=8"
path: artifacts/profile/top-langs.svg
token: ${{ secrets.GITHUB_TOKEN }}
# ── Generate PDF (after SVGs are ready) ──
- name: Generate PDF from README
run: ./src/generate_pdf.sh
# ── Commit all artifacts ──
- name: Commit and push if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add README.md artifacts/
git diff --cached --quiet || (git commit -m "docs: update README, CV exports & stats [skip ci]" && git push)