Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Sep 12, 2023
1 parent 27284d1 commit eb413f0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/post_run/index.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import * as gh from '@actions/github';

const key = 'sccache';
export const pleaseSave = async () => {
const path = process.env.SCCACHE_CACHE_DIR; // note: hard coded for now to: '/home/runner/.cache/sccache';
const path = process.env.SCCACHE_CACHE_DIR;
console.log(path);
if (!path) {
console.log(`no sccache dir found in SCCACHE_CACHE_DIR ${path}`);
return;
Expand Down
4 changes: 3 additions & 1 deletion src/post_run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import {deduplicate, pleaseSave} from './cache';
import {show_stats} from './show_stats';

const postRun = async () => {
await show_stats().then(deduplicate).then(pleaseSave);
await show_stats();
await deduplicate();
await pleaseSave();
};

postRun().catch(err => {
Expand Down

0 comments on commit eb413f0

Please sign in to comment.