File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ concurrency:
11
11
group : tests-${{ github.event.pull_request.number || github.ref }}
12
12
cancel-in-progress : true
13
13
14
- permissions : read-all
14
+ permissions : {}
15
15
16
16
jobs :
17
17
gen-matrix :
@@ -127,11 +127,7 @@ jobs:
127
127
const sha = '${{ github.event.pull_request.head.sha || github.sha }}';
128
128
const pr = '${{ github.event.pull_request.number }}';
129
129
130
- if (pr) {
131
- ref = "refs/pull/" + pr + "/merge";
132
- } else {
133
- ref = '${{ github.ref }}';
134
- }
130
+ console.log(`PR: ${pr}, SHA: ${sha}`);
135
131
136
132
do {
137
133
// Fetch all cache entries for the repository
@@ -156,13 +152,11 @@ jobs:
156
152
157
153
console.log(`Deleting cache with key: ${cache.key}`);
158
154
159
- /*
160
155
await github.rest.actions.deleteActionsCacheById({
161
156
owner: context.repo.owner,
162
157
repo: context.repo.repo,
163
158
cache_id: cache.id
164
159
});
165
- */
166
160
}
167
161
await sleep(30000); // Sleep for 30 seconds to avoid rate limiting
168
162
}
You can’t perform that action at this time.
0 commit comments