Skip to content

Commit 235d392

Browse files
authored
Cache .mo files
1 parent c2b48e2 commit 235d392

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/sync.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ jobs:
2727
repository: 'python/cpython'
2828
ref: ${{env.VERSION}}
2929
path: cpython
30+
- uses: actions/cache/restore@v3
31+
with:
32+
path: |
33+
cpython/Doc/build
34+
docs
35+
key: cache-${{ inputs.version }}-${{ github.run_id }}
36+
restore-keys: cache-${{ inputs.version }}-
3037
- name: Checkout Current Branch
3138
uses: actions/checkout@v3
3239
with:
@@ -38,16 +45,13 @@ jobs:
3845
run: .github/scripts/update.sh
3946
env:
4047
TX_TOKEN: ${{ secrets.TRANSIFEX_APIKEY }}
41-
- uses: actions/cache/restore@v3
42-
with:
43-
path: cpython/Doc/build
44-
key: cache-${{ inputs.version }}-${{ github.run_id }}
45-
restore-keys: cache-${{ inputs.version }}-
4648
- name: build
4749
run: .github/scripts/build.sh
4850
- uses: actions/cache/save@v3
4951
with:
50-
path: cpython/Doc/build
52+
path: |
53+
cpython/Doc/build
54+
docs
5155
key: cache-${{ inputs.version }}-${{ github.run_id }}
5256
- name: stat
5357
run: python .github/scripts/tx_stat.py > ./docs/.stat.json

0 commit comments

Comments
 (0)