From 5b87de2d9f434da5f5462c10b1bdd9a44c7999cf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tha=C3=AFs=20Guigon?= <guigon.thais@gmail.com>
Date: Thu, 25 Apr 2024 12:21:20 +0200
Subject: [PATCH] perf: remove branch name from tasks cache key

---
 .github/workflows/actions/task-cache/action.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/actions/task-cache/action.yaml b/.github/workflows/actions/task-cache/action.yaml
index 30b4487c9b54..f97f2653a6c1 100644
--- a/.github/workflows/actions/task-cache/action.yaml
+++ b/.github/workflows/actions/task-cache/action.yaml
@@ -24,6 +24,6 @@ runs:
         path: |
           .cache
           .nx/cache
-        key: tasks-cache-${{ github.ref_name }}-${{ inputs.tag }}-${{ steps.tasks-key.outputs.key }}${{ inputs.suffix }}-${{ github.sha }}
+        key: tasks-cache-${{ inputs.tag }}-${{ steps.tasks-key.outputs.key }}${{ inputs.suffix }}-${{ github.sha }}
         restore-keys: |
-          tasks-cache-${{ github.ref_name }}-${{ inputs.tag }}-${{ steps.tasks-key.outputs.key }}${{ inputs.suffix }}-
\ No newline at end of file
+          tasks-cache-${{ inputs.tag }}-${{ steps.tasks-key.outputs.key }}${{ inputs.suffix }}-
\ No newline at end of file