mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Change workflow: do not build documentation here but at opm-python-documentation
And notify opm-python-documentation when docstrings_simulators.json changes
This commit is contained in:
29
.github/workflows/dispatch_opm_simulators.yml
vendored
Normal file
29
.github/workflows/dispatch_opm_simulators.yml
vendored
Normal file
@@ -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"}'
|
||||
Reference in New Issue
Block a user