8000 Fix upstream error · xfangfang/flatpak-github-actions@c35ba99 · GitHub
[go: up one dir, main page]

Skip to content

Commit c35ba99

Browse files
authored
Fix upstream error
For more information, please refer to: actions/toolkit#1378 (comment)
1 parent ab53808 commit c35ba99

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

flatpak-builder/index.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ const yaml = require('js-yaml')
88
const crypto = require('crypto')
99
const { spawn } = require('child_process')
1010

11-
// The various paths to cache
12-
const CACHE_PATH = [
13-
'.flatpak-builder'
14-
]
15-
1611
/**
1712
* The options the action can take
1813
*/
@@ -245,7 +240,9 @@ const build = async (manifest, manifestPath, cacheHitKey, config) => {
245240

246241
if (config.cacheBuildDir && (cacheKey !== cacheHitKey)) {
247242
await cache.saveCache(
248-
CACHE_PATH,
243+
[
244+
'.flatpak-builder'
245+
],
249246
cacheKey
250247
).catch((reason) => {
251248
core.error(`Failed to save cache: ${reason}`)
@@ -299,7 +296,9 @@ const prepareBuild = async (config) => {
299296
if (config.cacheBuildDir && config.restoreCache) {
300297
const cacheKey = await config.cacheKey()
301298
cacheHitKey = await cache.restoreCache(
302-
CACHE_PATH,
299+
[
300+
'.flatpak-builder'
301+
],
303302
`${cacheKey}`,
304303
[
305304
'flatpak-builder-',

0 commit comments

Comments
 (0)
0