diff --git a/flatpak-builder/index.js b/flatpak-builder/index.js index f6fed458..03c80298 100644 --- a/flatpak-builder/index.js +++ b/flatpak-builder/index.js @@ -8,11 +8,6 @@ const yaml = require('js-yaml') const crypto = require('crypto') const { spawn } = require('child_process') -// The various paths to cache -const CACHE_PATH = [ - '.flatpak-builder' -] - /** * The options the action can take */ @@ -245,7 +240,9 @@ const build = async (manifest, manifestPath, cacheHitKey, config) => { if (config.cacheBuildDir && (cacheKey !== cacheHitKey)) { await cache.saveCache( - CACHE_PATH, + [ + '.flatpak-builder' + ], cacheKey ).catch((reason) => { core.error(`Failed to save cache: ${reason}`) @@ -299,7 +296,9 @@ const prepareBuild = async (config) => { if (config.cacheBuildDir && config.restoreCache) { const cacheKey = await config.cacheKey() cacheHitKey = await cache.restoreCache( - CACHE_PATH, + [ + '.flatpak-builder' + ], `${cacheKey}`, [ 'flatpak-builder-',