Skip to content

Commit

Permalink
[TOREMOVE] Test doc workflow dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiSG committed May 21, 2024
1 parent 001a610 commit 25a9137
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,19 @@ jobs:
- id: stop-early
run: if "${GITHUB_WORKSPACE}/.github/has-functional-changes.sh" ; then echo "::set-output name=status::success" ; fi # The `check-for-functional-changes` job should always succeed regardless of the `has-functional-changes` script's exit code. Consequently, we do not use that exit code to trigger deploy, but rather a dedicated output variable `status`, to avoid a job failure if the exit code is different from 0. Conversely, if the job fails the entire workflow would be marked as `failed` which is disturbing for contributors.

deploy-doc: # TESTING
runs-on: ubuntu-latest
steps:
- name: Update doc
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.OPENFISCADOC_BOT_ACCESS_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://github.com/gitapi/repos/openfisca/openfisca-doc/actions/workflows/deploy.yaml/dispatches \
-d '{"ref":"cd"}'
deploy:
runs-on: ubuntu-22.04
needs: [ check-for-functional-changes ]
Expand Down

0 comments on commit 25a9137

Please sign in to comment.