Skip to content

Commit 3af8343

Browse files
committed
Fix Actions / Error: This request has been automatically failed because it uses a deprecated version of actions/cache: v2
Please update your workflow to use v3/v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
1 parent 36ce12b commit 3af8343

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/documentation.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/setup-python@v4
2222
with:
2323
python-version: 3.x
24-
- uses: actions/cache@v2
24+
- uses: actions/cache@v4
2525
with:
2626
key: ${{ github.ref }}
2727
path: .cache
@@ -101,14 +101,14 @@ jobs:
101101
steps:
102102
- uses: actions/checkout@v3
103103
- name: Cache pip
104-
uses: actions/cache@v2
104+
uses: actions/cache@v4
105105
with:
106106
path: ~/.cache/pip
107107
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
108108
restore-keys: |
109109
${{ runner.os }}-pip-
110110
- name: Cache PlatformIO
111-
uses: actions/cache@v2
111+
uses: actions/cache@v4
112112
with:
113113
path: ~/.platformio
114114
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
@@ -142,7 +142,7 @@ jobs:
142142
- uses: actions/setup-python@v4
143143
with:
144144
python-version: 3.x
145-
- uses: actions/cache@v2
145+
- uses: actions/cache@v4
146146
with:
147147
key: ${{ github.ref }}
148148
path: .cache
@@ -194,7 +194,7 @@ jobs:
194194
- uses: actions/setup-python@v4
195195
with:
196196
python-version: 3.x
197-
- uses: actions/cache@v2
197+
- uses: actions/cache@v4
198198
with:
199199
key: ${{ github.ref }}
200200
path: .cache

.github/workflows/pio.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ jobs:
2020
example: [examples/ESP/main.cpp, examples/ESP-TLS/main.cpp]
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
2424
- name: Cache pip
25-
uses: actions/cache@v2
25+
uses: actions/cache@v4
2626
with:
2727
path: ~/.cache/pip
2828
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
2929
restore-keys: |
3030
${{ runner.os }}-pip-
3131
- name: Cache PlatformIO
32-
uses: actions/cache@v2
32+
uses: actions/cache@v4
3333
with:
3434
path: ~/.platformio
3535
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
3636
- name: Set up Python
37-
uses: actions/setup-python@v2
37+
uses: actions/setup-python@v4
3838
- name: Install PlatformIO
3939
run: |
4040
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)