Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add condition to cache requirements if it is not main branch (#10536)
Krzysztof Kwaśniakf751afe467d3
diff --git a/.github/workflows/publish-containers.yml b/.github/workflows/publish-containers.ymlindex 7d2aae9e8a..adfc48dc2e 100644--- a/.github/workflows/publish-containers.yml+++ b/.github/workflows/publish-containers.yml@@ -98,11 +98,17 @@ jobs:- name: Cache Docker layersuses: actions/cache@v2+ # This condition is a temporary fix until+ # https://github.com/docker/buildx/issues/1044 is resolved, as it+ # prevents usage of image registry.+ # Due to limitation of local cache size we are skipping main branch and+ # prioritize local cache for other branches e.g 3.x.+ if: github.ref != 'refs/heads/main'with:path: /tmp/.buildx-cache- key: ${{ runner.os }}-buildx-${{ github.sha }}+ key: ${{ runner.os }}-buildx-${{ hashFiles('requirements_dev.txt') }}restore-keys: |- ${{ runner.os }}-buildx-${{ hashFiles('requirements_dev.txt') }}+ ${{ runner.os }}-buildx-- name: Login to GitHub Container Registryuses: docker/login-action@v1