The container image for scheduled jobs was supposed to be Fedora,
however there was already Ubuntu image in the cache. Make sure
the cache is distinguished also by the event name.

Signed-off-by: Ales Musil <[email protected]>
---
 .github/workflows/test.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 22e4d339d..efe2dac25 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -131,7 +131,7 @@ jobs:
         uses: actions/cache@v4
         with:
           path: /tmp/image.tar
-          key: ${{ github.sha }}
+          key: ${{ github.sha }}/${{ github.event_name }}
 
   build-linux:
     needs: [build-dpdk, prepare-container]
@@ -212,10 +212,11 @@ jobs:
         key: ${{ needs.build-dpdk.outputs.dpdk_key }}
 
     - name: image cache
+      id: image_cache
       uses: actions/cache@v4
       with:
         path: /tmp/image.tar
-        key: ${{ github.sha }}
+        key: ${{ github.sha }}/${{ github.event_name }}
 
     # XXX This should be removed when native crun >=1.9.1
     - name: update crun script
-- 
2.44.0

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to