File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 17
17
18
18
console.log(`Deleting caches matching pattern: ${cacheKeysPattern}`);
19
19
20
- const { listForRepo } = require("@octokit/plugin-paginate-rest");
21
- const octokit = github.getOctokit(process.env.GITHUB_TOKEN);
22
-
23
20
// Fetch all cache entries for the repository
24
- const caches = await octokit .actions.listRepoCaches({
21
+ const caches = await github .actions.listRepoCaches({
25
22
owner: context.repo.owner,
26
23
repo: context.repo.repo,
27
24
});
34
31
// Delete matching caches
35
32
for (const cache of matchingCaches) {
36
33
/*
37
- await octokit .actions.deleteActionsCacheById({
34
+ await github .actions.deleteActionsCacheById({
38
35
owner: context.repo.owner,
39
36
repo: context.repo.repo,
40
37
cache_id: cache.id
Original file line number Diff line number Diff line change 72
72
~/.arduino/tests/**/build*.tmp/*.elf
73
73
~/.arduino/tests/**/build*.tmp/*.json
74
74
75
+ - uses : actions/setup-python@v5
76
+ if : ${{ steps.check-tests.outputs.enabled == 'true' }}
77
+ with :
78
+ cache : ' pip'
79
+ python-version : ' 3.10.1'
80
+
75
81
- name : Checkout repository
76
82
if : ${{ steps.check-tests.outputs.enabled == 'true' }}
77
83
uses : actions/checkout@v4
Original file line number Diff line number Diff line change 63
63
- uses : actions/setup-python@v5
64
64
if : steps.check-tests.outputs.enabled == 'true'
65
65
with :
66
+ cache : ' pip'
66
67
python-version : ' 3.x'
67
68
69
+ - name : Checkout Repository
70
+ uses : actions/checkout@v4
71
+ if : steps.check-tests.outputs.enabled == 'true'
72
+ with :
73
+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
74
+
68
75
- name : Install Wokwi CLI
69
76
if : steps.check-tests.outputs.enabled == 'true'
70
77
run : curl -L https://wokwi.com/ci/install.sh | sh
You can’t perform that action at this time.
0 commit comments