Skip to content

Commit

Permalink
Fix upstream error
Browse files Browse the repository at this point in the history
For more information, please refer to: actions/toolkit#1378 (comment)
  • Loading branch information
xfangfang committed Jul 24, 2023
1 parent ab53808 commit c35ba99
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions flatpak-builder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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}`)
Expand Down Expand Up @@ -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-',
Expand Down

0 comments on commit c35ba99

Please sign in to comment.