Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

ci: notify hypihub about documentation changes

rponedaf70248861d
diff --git a/.github/workflows/sync-hypihub-docs.yml b/.github/workflows/sync-hypihub-docs.yml
new file mode 100644
index 00000000..c476a44e
--- /dev/null
+++ b/.github/workflows/sync-hypihub-docs.yml
@@ -0,0 +1,39 @@
+name: Notify HypiHub of documentation updates
+
+on:
+ push:
+ branches: [main]
+ paths:
+ - "docs/**"
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+jobs:
+ notify:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Dispatch documentation sync
+ uses: actions/github-script@v7
+ env:
+ HYPIHUB_SYNC_TOKEN: ${{ secrets.HYPIHUB_SYNC_TOKEN }}
+ with:
+ script: |
+ const token = process.env.HYPIHUB_SYNC_TOKEN;
+ if (!token) {
+ core.setFailed("HYPIHUB_SYNC_TOKEN is not configured");
+ return;
+ }
+
+ const client = github.getOctokit(token);
+ await client.rest.repos.createDispatchEvent({
+ owner: "hypit-ai",
+ repo: "hypihub",
+ event_type: "hypit-docs-updated",
+ client_payload: {
+ source_repo: `${context.repo.owner}/${context.repo.repo}`,
+ source_sha: context.sha,
+ source_ref: context.ref,
+ },
+ });