Skip to content

Commit 52551de

Browse files
authored
cache
1 parent 296c3d3 commit 52551de

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

‎.github/scripts/commit.sh

-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ if ! git status -s|grep '\.po'; then
1111
fi
1212
git add .
1313
git commit -m '[po] auto sync'
14-
header="$(echo -n token:"$GITHUB_TOKEN" | base64)"
1514
git push

‎.github/workflows/python-312.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,17 @@ jobs:
3232
run: .github/scripts/update.sh
3333
env:
3434
TX_TOKEN: ${{ secrets.TRANSIFEX_APIKEY }}
35+
- name: Restore doctrees Cache
36+
uses: actions/cache/restore@v3
37+
with:
38+
path: ./cpython/Doc/build/doctrees
39+
key: sphinx-cache-${{env.VERSION}}
3540
- name: build
3641
run: .github/scripts/build.sh
42+
- name: Save doctrees Cache
43+
uses: actions/cache/save@v3
44+
with:
45+
path: ./cpython/Doc/build/doctrees
46+
key: sphinx-cache-${{env.VERSION}}
3747
- name: commit
3848
run: .github/scripts/commit.sh
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)