diff --git a/.github/workflows/populate-cache.yml b/.github/workflows/populate-cache.yml index 4238d26353ec..040408994e24 100644 --- a/.github/workflows/populate-cache.yml +++ b/.github/workflows/populate-cache.yml @@ -21,8 +21,6 @@ on: push: branches: - master - - ozone-2.1 - - ozone-2.2 paths: - 'pom.xml' - '**/pom.xml' diff --git a/.github/workflows/post-commit.yml b/.github/workflows/post-commit.yml index d5900da387cd..7365413dab28 100644 --- a/.github/workflows/post-commit.yml +++ b/.github/workflows/post-commit.yml @@ -45,6 +45,7 @@ on: - '!.github/actions/setup-java-with-cache/**' - '!.github/workflows/check.yml' - '!.github/workflows/ci.yml' + - '!.github/workflows/populate-cache.yml' - '!.github/workflows/post-commit.yml' - '!.github/workflows/generate-config-doc.yml' - '!.github/workflows/update-ozone-site-config-doc.yml' @@ -55,7 +56,14 @@ concurrency: permissions: contents: read jobs: + cache: + uses: $/.github/workflows/populate-cache.yml + if: github.event_name != 'pull_request' + CI: + needs: + - cache + if: ${{ !cancelled() }} # even if cache is skipped or fails uses: $/.github/workflows/ci.yml secrets: DEVELOCITY_ACCESS_KEY: ${{ secrets.OZONE_DEVELOCITY_ACCESS_KEY }}