Skip to content

Commit 2c3400e

Browse files
committed
Fix
1 parent 905a605 commit 2c3400e

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.github/workflows/clean.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@ jobs:
1717
1818
console.log(`Deleting caches matching pattern: ${cacheKeysPattern}`);
1919
20-
const { listForRepo } = require("@octokit/plugin-paginate-rest");
21-
const octokit = github.getOctokit(process.env.GITHUB_TOKEN);
22-
2320
// Fetch all cache entries for the repository
24-
const caches = await octokit.actions.listRepoCaches({
21+
const caches = await github.actions.listRepoCaches({
2522
owner: context.repo.owner,
2623
repo: context.repo.repo,
2724
});
@@ -34,7 +31,7 @@ jobs:
3431
// Delete matching caches
3532
for (const cache of matchingCaches) {
3633
/*
37-
await octokit.actions.deleteActionsCacheById({
34+
await github.actions.deleteActionsCacheById({
3835
owner: context.repo.owner,
3936
repo: context.repo.repo,
4037
cache_id: cache.id

.github/workflows/hw.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ jobs:
7272
~/.arduino/tests/**/build*.tmp/*.elf
7373
~/.arduino/tests/**/build*.tmp/*.json
7474
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+
7581
- name: Checkout repository
7682
if: ${{ steps.check-tests.outputs.enabled == 'true' }}
7783
uses: actions/checkout@v4

.github/workflows/wokwi.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,15 @@ jobs:
6363
- uses: actions/setup-python@v5
6464
if: steps.check-tests.outputs.enabled == 'true'
6565
with:
66+
cache: 'pip'
6667
python-version: '3.x'
6768

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+
6875
- name: Install Wokwi CLI
6976
if: steps.check-tests.outputs.enabled == 'true'
7077
run: curl -L https://wokwi.com/ci/install.sh | sh

0 commit comments

Comments
 (0)