@@ -18,27 +18,31 @@ jobs:
1818 steps :
1919 - name : " Checkout"
2020 uses : " actions/checkout@v4"
21+
2122 - name : " Get current date for the daily cache"
2223 id : " date"
2324 run : echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
25+
2426 - name : " Cache the php documentation"
25- id : cache-php-doc
27+ id : cache-php-docs
2628 uses : " actions/cache@v4"
2729 with :
28- path : " generator/doc/doc-en"
29- key : php-doc-${{ steps.date.outputs.date }}
30+ path : " generator/docs"
31+ key : php-docs-${{ steps.date.outputs.date }}
32+
3033 - name : " Check out salathe/phpdoc-base"
3134 uses : " actions/checkout@v4"
32- if : steps.cache-php-doc .outputs.cache-hit != 'true'
35+ if : steps.cache-php-docs .outputs.cache-hit != 'true'
3336 with :
34- path : " generator/doc/doc-en/doc -base"
37+ path : " generator/docs/salathe/phpdoc -base"
3538 repository : " salathe/phpdoc-base"
3639 fetch-depth : 0
40+
3741 - name : " Check out php/doc-en"
3842 uses : " actions/checkout@v4"
39- if : steps.cache-php-doc .outputs.cache-hit != 'true'
43+ if : steps.cache-php-docs .outputs.cache-hit != 'true'
4044 with :
41- path : " generator/doc/ doc-en/ en"
45+ path : " generator/docs/php/ doc-en"
4246 repository : " php/doc-en"
4347 fetch-depth : 0
4448
@@ -61,11 +65,11 @@ jobs:
6165 coverage : " pcov"
6266 php-version : " ${{ matrix.php-version }}"
6367 - name : " Fetch cached docs"
64- id : cache-php-doc
68+ id : cache-docs
6569 uses : " actions/cache@v4"
6670 with :
67- path : " generator/doc/doc-en "
68- key : php-doc -${{ needs.fetch_defs.outputs.date }}
71+ path : " generator/docs "
72+ key : php-docs -${{ needs.fetch_defs.outputs.date }}
6973 fail-on-cache-miss : true
7074 - name : " Cache dependencies installed with composer"
7175 uses : " actions/cache@v4"
@@ -140,11 +144,11 @@ jobs:
140144 coverage : " pcov"
141145 php-version : " 8.4"
142146 - name : " Fetch cached docs"
143- id : cache-php-doc
147+ id : cache-php-docs
144148 uses : " actions/cache@v4"
145149 with :
146- path : " generator/doc/doc-en "
147- key : php-doc -${{ needs.fetch_defs.outputs.date }}
150+ path : " generator/docs "
151+ key : php-docs -${{ needs.fetch_defs.outputs.date }}
148152 fail-on-cache-miss : true
149153 - name : " Cache dependencies installed with composer"
150154 uses : " actions/cache@v4"
0 commit comments