Skip to content

Update README.md

Update README.md #37

name: Trigger Website Rebuild
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '[0-9][0-9]-*/**'
- 'README.md'
- 'SETUP.md'
- '.github/workflows/trigger-website-rebuild.yml'
jobs:
trigger-rebuild:
runs-on: ubuntu-latest
steps:
- name: Generate app token
id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.AGENTIC_LOOPS_GITHUB_APP_ID }}
private-key: ${{ secrets.AGENTIC_LOOPS_GITHUB_APP_PRIVATE_KEY }}
owner: agenticloops-ai
repositories: agenticloops-website
- name: Trigger website rebuild
run: |
curl -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
https://api.github.com/repos/${{ vars.WEBSITE_REPO }}/dispatches \
-d '{"event_type": "content-update", "client_payload": {"repository": "${{ github.repository }}", "ref": "${{ github.sha }}"}}'