Skip to content

Commit

Permalink
ci: fix docs build workflow using needs
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Sep 28, 2023
1 parent 56810a2 commit 6e32e59
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,30 @@ jobs:

build_doxygen:
uses: hotosm/gh-workflows/.github/workflows/doxygen_build.yml@main
needs: [get_cache_key]
with:
cache_paths: |
docs/apidocs
cache_key: ${{ steps.get_cache_key.outputs.cache_key }}
cache_key: ${{ needs.get_cache_key.outputs.cache_key }}

build_openapi_json:
uses: hotosm/gh-workflows/.github/workflows/openapi_build.yml@main
needs: [get_cache_key]
with:
image: ghcr.io/hotosm/fmtm/backend:ci-main
example_env_file_path: ".env.example"
cache_paths: |
docs/openapi.json
cache_key: ${{ steps.get_cache_key.outputs.cache_key }}
cache_key: ${{ needs.get_cache_key.outputs.cache_key }}

publish_docs:
uses: hotosm/gh-workflows/.github/workflows/mkdocs_build.yml@main
needs: [build_doxygen, build_openapi_json]
needs:
- get_cache_key
- build_doxygen
- build_openapi_json
with:
cache_paths: |
docs/apidocs
docs/openapi.json
cache_key: ${{ steps.get_cache_key.outputs.cache_key }}
cache_key: ${{ needs.get_cache_key.outputs.cache_key }}

0 comments on commit 6e32e59

Please sign in to comment.