Skip to content

Commit 7be19e4

Browse files
committed
Test
1 parent 9a791a3 commit 7be19e4

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111
group: tests-${{ github.event.pull_request.number || github.ref }}
1212
cancel-in-progress: true
1313

14-
permissions: read-all
14+
permissions: {}
1515

1616
jobs:
1717
gen-matrix:
@@ -127,11 +127,7 @@ jobs:
127127
const sha = '${{ github.event.pull_request.head.sha || github.sha }}';
128128
const pr = '${{ github.event.pull_request.number }}';
129129
130-
if (pr) {
131-
ref = "refs/pull/" + pr + "/merge";
132-
} else {
133-
ref = '${{ github.ref }}';
134-
}
130+
console.log(`PR: ${pr}, SHA: ${sha}`);
135131
136132
do {
137133
// Fetch all cache entries for the repository
@@ -156,13 +152,11 @@ jobs:
156152
157153
console.log(`Deleting cache with key: ${cache.key}`);
158154
159-
/*
160155
await github.rest.actions.deleteActionsCacheById({
161156
owner: context.repo.owner,
162157
repo: context.repo.repo,
163158
cache_id: cache.id
164159
});
165-
*/
166160
}
167161
await sleep(30000); // Sleep for 30 seconds to avoid rate limiting
168162
}

0 commit comments

Comments
 (0)