-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change workflow: do not build documentation here but at opm-python-do…
…cumentation And notify opm-python-documentation when docstrings_simulators.json changes
- Loading branch information
Showing
2 changed files
with
29 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Dispatch to opm-python-documentation | ||
|
||
on: | ||
push: | ||
branches: master | ||
paths: | ||
- 'python/docstrings_simulators.json' | ||
pull_request: | ||
branches: master | ||
paths: | ||
- 'python/docstrings_simulators.json' | ||
|
||
jobs: | ||
dispatch: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Send dispatch to opm-simulators | ||
env: | ||
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
run: | | ||
curl -X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \ | ||
https://api.github.com/repos/${{ github.repository_owner }}/opm-python-documentation/dispatches \ | ||
-d '{"event_type":"docstrings_simulators_updated"}' |
This file was deleted.
Oops, something went wrong.