Skip to content

Commit 6c15720

Browse files
committed
more fixes
1 parent 787a8fa commit 6c15720

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ jobs:
186186
const ageMs = createdAt ? (now - createdAt) : null;
187187
const ageDays = ageMs ? (ageMs / (1000*60*60*24)) : null;
188188
189-
const isSameFull = scopeHash && cacheKey.endsWith(`${scopeHash}`);
190-
const isSameShort = shortScopeHash && cacheKey.endsWith(`-${shortScopeHash}`);
189+
const isSameFull = scopeHash && cacheKey.includes(`-${scopeHash}-`);
190+
const isSameShort = shortScopeHash && cacheKey.includes(`-${shortScopeHash}-`);
191191
const isSameHash = isSameFull || isSameShort;
192192
193193
// Rule:

0 commit comments

Comments
 (0)