File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -126,14 +126,12 @@ jobs:
126
126
}
127
127
*/
128
128
129
- let caches = null;
130
- const sleep = ms => new Promise(r => setTimeout(r, ms));
131
129
const sha = '${{ github.event.pull_request.head.sha || github.sha }}';
132
130
const pr = '${{ github.event.pull_request.number }}';
133
131
const ref = '${{ github.event.pull_request.number || github.ref }}';
134
132
const regex = new RegExp("^tests-[\\w]+-"+ref+"-", "m"); // Match "tests-<type>-<ref>-" in cache key
135
133
136
- console.log(`PR : ${pr }, SHA: ${sha}`);
134
+ console.log(`ref : ${ref }, SHA: ${sha}`);
137
135
138
136
await github.paginate(github.rest.actions.getActionsCacheList, {
139
137
owner: context.repo.owner,
@@ -152,13 +150,11 @@ jobs:
152
150
153
151
console.log(`Deleting cache: ${cache.key}`);
154
152
155
- /*
156
153
github.rest.actions.deleteActionsCacheById({
157
154
owner: context.repo.owner,
158
155
repo: context.repo.repo,
159
156
cache_id: cache.id
160
157
});
161
- */
162
158
}
163
159
}
164
160
});
You can’t perform that action at this time.
0 commit comments