Skip to content

Commit

Permalink
Merge pull request #4 from xolvio/fix-allow-branches-with-slashes
Browse files Browse the repository at this point in the history
fix: allow branches with slashes for the cache use
  • Loading branch information
lgandecki authored Mar 11, 2021
2 parents 10d1c52 + 64b20c6 commit 0bd424f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/updateTypeScriptFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ const getStackResourcesAndUploadInfos = async (
return new Promise((resolve) => {
let cache;
const cacheDirectory = `${process.cwd()}/.update-function-cache`;
const cacheFileName = `${process.env.BRANCH}.cache.json`;
const cacheFileName = `${process.env.BRANCH?.replace(
/\//g,
"_"
)}.cache.json`;
const cacheFilePath = `${cacheDirectory}/${cacheFileName}`;
try {
// eslint-disable-next-line global-require,import/no-dynamic-require
Expand Down

0 comments on commit 0bd424f

Please sign in to comment.