File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -115,11 +115,12 @@ jobs:
115
115
with :
116
116
script : |
117
117
// Check if event is not a pull request or is a closed pull request
118
- console.log(`Event name: ${{ github.event_name }}, action: ${{ github.event.action }}, sha: ${{ github.sha }}`);
119
- if (github.event_name == 'pull_request_target' && github.event.action != 'closed') {
118
+ /*
119
+ if ('${{ github.event_name }}' == 'pull_request_target' && '${{ github.event.action }}' != 'closed') {
120
120
console.log('Skipping cache cleanup');
121
121
return;
122
122
}
123
+ */
123
124
124
125
const ref = "${{ github.event.pull_request.number || github.ref }}";
125
126
const cacheKeysPattern = `tests-bin-${ref}-`;
@@ -131,7 +132,7 @@ jobs:
131
132
owner: context.repo.owner,
132
133
repo: context.repo.repo,
133
134
per_page: 100,
134
- key: cacheKeysPattern
135
+ key: cacheKeysPattern + '*'
135
136
});
136
137
137
138
if (caches.data) {
You can’t perform that action at this time.
0 commit comments