Skip to content

Commit 696f189

Browse files
authored
Fix documentation CI workflow (#945)
Use `actions/cache@v4` and fix cache key.
1 parent 6cc725c commit 696f189

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/documentation.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ jobs:
1212
- uses: actions/setup-python@v4
1313
with:
1414
python-version: 3.x
15-
- uses: actions/cache@v2
15+
- name: Get Date
16+
id: get-date
17+
run: |
18+
echo "date=$(/bin/date -u "+%Y%m")" >> $GITHUB_OUTPUT
19+
shell: bash
20+
- uses: actions/cache@v4
1621
with:
17-
key: ${{ github.ref }}
22+
key: ${{ runner.os }}-${{ steps.get-date.outputs.date }}
1823
path: .cache
1924
- run: sudo apt-get install -y libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev
2025
- run: pip install -r docs/requirements.txt

0 commit comments

Comments
 (0)