Skip to content

Commit

Permalink
Merge pull request #352 from nens/trigger-docs-pr
Browse files Browse the repository at this point in the history
Trigger docs pr
  • Loading branch information
elisalle authored Jan 19, 2024
2 parents 7333754 + 12873cf commit 6e4a9e9
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- "MANIFEST.in"
- "setup.cfg"
- "setup.py"
workflow_dispatch:

jobs:
build:
Expand Down Expand Up @@ -57,4 +58,19 @@ jobs:
- name: Upload Release Assets to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_UPLOAD_TOKEN }}
password: ${{ secrets.PYPI_UPLOAD_TOKEN }}

trigger_docs_pr:
name: Trigger schematisation checks PR workflow on threedi-docs
if: ${{ github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- name: send POST request to Github API
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.ELI_TRIGGER_DOCS_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/nens/threedi-docs/actions/workflows/update-checks-list.yml/dispatches \
-d '{"ref":"master","inputs":{"reviewer_name":"${{ github.actor }}"}}'

0 comments on commit 6e4a9e9

Please sign in to comment.