Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 94a3c21

Browse files
Add docs dispatch for opaque sql (#243)
This PR adds a dispatch action to the CI that notifies the [documentation repo](https://github.com/mc2-project/mc2-project.github.io) to rebuild and regenerate documentation upon every push to master in this Opaque SQL repo. This action essentially makes a request to the documentation repo to rebuild upon every push to master. The documentation repo listens for this request [here](https://github.com/mc2-project/mc2-project.github.io/blob/master/.github/workflows/docs.yml#L11). Once the documentation repo receives this request, it'll automatically regenerate the documentation and publish it online.
1 parent 4a0ab5a commit 94a3c21

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎.github/workflows/docs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,17 @@ jobs:
2424
git config --local user.name "GitHub Action"
2525
git add .
2626
git commit -m "${GITHUB_ACTOR}'s changes in ${GITHUB_SHA} triggered this build" -a || true
27+
2728
- name: Push changes
2829
uses: ad-m/github-push-action@master
2930
with:
3031
branch: gh-pages
3132
directory: gh-pages
3233
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Update MC2 website
36+
uses: peter-evans/repository-dispatch@v1
37+
with:
38+
token: ${{ secrets.MC2_BOT_PAT }}
39+
repository: mc2-project/mc2-project.github.io
40+
event-type: opaque-sql-docs-dispatch

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /