diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2ada553603..2552910cdb 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 }}