Skip to content

Commit

Permalink
Merge branch 'master' into ci/tests_refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed May 21, 2024
2 parents ec28718 + b5f9b2c commit 8c425b2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,12 @@ jobs:
}
*/
let caches = null;
const sleep = ms => new Promise(r => setTimeout(r, ms));
const sha = '${{ github.event.pull_request.head.sha || github.sha }}';
const pr = '${{ github.event.pull_request.number }}';
const ref = '${{ github.event.pull_request.number || github.ref }}';
const regex = new RegExp("^tests-[\\w]+-"+ref+"-", "m"); // Match "tests-<type>-<ref>-" in cache key
console.log(`PR: ${pr}, SHA: ${sha}`);
console.log(`ref: ${ref}, SHA: ${sha}`);
await github.paginate(github.rest.actions.getActionsCacheList, {
owner: context.repo.owner,
Expand All @@ -152,13 +150,11 @@ jobs:
console.log(`Deleting cache: ${cache.key}`);
/*
github.rest.actions.deleteActionsCacheById({
owner: context.repo.owner,
repo: context.repo.repo,
cache_id: cache.id
});
*/
}
}
});

0 comments on commit 8c425b2

Please sign in to comment.