Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,36 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

# Notify the skills repo that docs changed, so it can regenerate its
# docs-driven rules against the just-deployed content. See the
# generate.yaml workflow in HarperFast/skills (Phase 2 of the
# docs-driven-skills plan).
#
# Authenticates as the org-owned "harper-skills-sync" GitHub App, minting
# a token scoped to HarperFast/skills (the default GITHUB_TOKEN is scoped
# to this repo only and cannot dispatch cross-repo). The App must be
# installed on the skills repo; this repo holds its SKILLS_SYNC_APP_ID /
# SKILLS_SYNC_APP_PRIVATE_KEY secrets. If the App is ever removed, the
# skills repo's weekly cron is the safety net.
notify-skills:
needs: deploy
name: Notify skills repo
runs-on: ubuntu-latest
steps:
- name: Mint app token for skills
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ secrets.SKILLS_SYNC_APP_ID }}
private-key: ${{ secrets.SKILLS_SYNC_APP_PRIVATE_KEY }}
owner: HarperFast
repositories: skills

- name: Dispatch docs-updated to HarperFast/skills
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
gh api repos/HarperFast/skills/dispatches \
-f event_type=docs-updated \
-F client_payload[sha]=${{ github.sha }}