Skip to content

Commit 737ca6a

Browse files
committed
ci: fix failing test on shedule event
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent 60e75eb commit 737ca6a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/__test-action-docker-prune-pull-requests-image-tags.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ jobs:
5656
5757
// Define expected packages
5858
const packages = [`ci-github-container/${process.env.IMAGE_NAME}`];
59-
const isTagPush = context.eventName === "push" && context.ref.startsWith("refs/tags/");
60-
if (!isTagPush) {
59+
const shouldExpectRegistryCache = context.eventName === "pull_request"
60+
|| (context.eventName === "push" && !context.ref.startsWith("refs/tags/"));
61+
if (shouldExpectRegistryCache) {
6162
packages.push(`ci-github-container/${process.env.IMAGE_NAME}/cache`);
6263
}
6364

0 commit comments

Comments
 (0)