@@ -57,27 +57,25 @@ jobs:
5757 cacheHit : ${{ steps.cache-zotero-bib.outputs.cache-hit }}
5858
5959 runs-on : ubuntu-latest
60- concurrency :
61- group : ${{ github.workflow }}-${{ github.ref }}
6260 steps :
6361
6462 - name : Get Zotero Version Information
6563 id : zoteroVersion
6664 uses : fjogeleit/http-request-action@v1
6765 with :
68- url : " https://api.zotero.org/groups/2914042/items?format=versions"
69- method : " GET"
66+ url : https://api.zotero.org/groups/2914042/items?format=versions
67+ method : GET
7068
7169 - name : Cache Zotero Bibliography
72- id : cache-zotero-bib
73- uses : actions/cache@v4
74- env :
75- cache-name : cache-zotero_bib
70+ id : cache-zotero
71+ uses : actions/cache/restore@v4
7672 with :
77- path : ~/data
78- key : ${{ fromJson(steps.zoteroVersion.outputs.headers).last-modified-version }}
79- restore-keys : |
80- ${{ fromJson(steps.zoteroVersion.outputs.headers).last-modified-version }}
73+ lookup-only : true
74+ path : |
75+ static/data/bibliography.json
76+ static/data/bibItems
77+ content/en/history/bibliography
78+ key : bib-${{ fromJson(steps.zoteroVersion.outputs.headers).last-modified-version }}
8179
8280 # ----------------------------------------------------------------------------
8381 # Build the website. This job is conditional, we will always run it on a
@@ -94,31 +92,23 @@ jobs:
9492 fetch-depth : 0
9593
9694 - name : Cache Zotero Bibliography
97- id : cache-zotero- bib
95+ id : cache-bib
9896 uses : actions/cache@v4
99- env :
100- cache-name : cache-zotero_bib
10197 with :
102- path : ~/data
103- key : ${{ needs.check.outputs.zoteroVersion }}
104- restore-keys : |
105- ${{ needs.check.outputs.zoteroVersion }}
98+ path : |
99+ static/data/bibliography.json
100+ static/data/bibItems
101+ content/en/history/bibliography
102+ key : bib-${{ needs.check.outputs.zoteroVersion }}
106103
107104 - name : Install Bibliography
108- env :
109- CACHE_HIT : ${{ steps.cache-zotero-bib.outputs.cache-hit }}
105+ if : steps.cache-bib.outputs.cache-hit != 'true'
110106 run : |
111- if [[ "$CACHE_HIT" == 'true' ]]; then
112- echo "Use Cache"
113- sudo cp --recursive ~/data ${GITHUB_WORKSPACE}/static
114- ls -la ${GITHUB_WORKSPACE}/static/data
115- else
116107 echo "Retrieve bibliography"
117108 cd scripts
118109 chmod +x ./update_bibliography.sh
110+ chmod +x ./bibSplit.pl
119111 ./update_bibliography.sh
120- sudo cp --recursive ${GITHUB_WORKSPACE}/static/data ~/data
121- fi
122112
123113 # Install Hugo Extended
124114 #
0 commit comments