mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-10-29 03:34:44 +08:00
* Modernize workflow actions and permissions * Test the fentry tutorial in CI * Support Rust 1.97 symbol mangling * Limit documentation writes to main * Harden Rust symbol resolution --------- Co-authored-by: LinuxDev9002 <i@littlefisher.me>
43 lines
951 B
YAML
43 lines
951 B
YAML
name: Test and trigger downstream tutorial sync
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
trigger:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout website repo
|
|
uses: actions/checkout@v7
|
|
with:
|
|
repository: ${{ github.repository_owner }}/eunomia.dev
|
|
ref: main
|
|
path: ./.
|
|
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: 3.x
|
|
|
|
- name: Install all
|
|
run: |
|
|
make install
|
|
|
|
- name: Test page build
|
|
run: |
|
|
.venv/bin/mkdocs build -v
|
|
|
|
- name: Trigger sync workflow
|
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
uses: peter-evans/repository-dispatch@v4
|
|
with:
|
|
token: ${{ secrets.PAT }}
|
|
repository: ${{ github.repository_owner }}/eunomia.dev
|
|
event-type: trigger-tutorial-sync
|