From 6e32e59967963f807e5111b7015c28078edca805 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Thu, 28 Sep 2023 18:07:46 +0100 Subject: [PATCH] ci: fix docs build workflow using needs --- .github/workflows/docs.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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 }}