]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
Stash the data we need for the dashboard inside the dashboard 9670/head
authorSimon Cozens <simon@simon-cozens.org>
Mon, 14 Jul 2025 15:13:49 +0000 (16:13 +0100)
committerSimon Cozens <simon@simon-cozens.org>
Mon, 14 Jul 2025 15:13:49 +0000 (16:13 +0100)
.github/workflows/report.yaml

index 070d7eb129d0171a8f1e6f70ec3cd359780784ff..f91c5f64de83d95eace06663e18ba987577417e7 100644 (file)
@@ -45,6 +45,11 @@ jobs:
       - name: Compact fontspector database
         run: |
           /home/runner/.duckdb/cli/latest/duckdb .ci/dashboard/fontspector.db -f .ci/dashboard/scripts/tidy-database.sql
+      - name: Grab data files from last run
+        working-directory: .ci/dashboard/src/data/
+        run: |
+          curl https://google.github.io/fonts/_file/data/servers.d9167fe6.json -o servers.json
+          curl https://google.github.io/fonts/_file/data/versionhistory.cab04ce9.json -o versionhistory.json
       - name: Write out secret
         run: echo "${{ secrets.GF_PUSH_CONFIG }}" | base64 -d > ~/.gf_push_config.ini
       - name: Update servers
@@ -52,11 +57,6 @@ jobs:
         env:
           GF_PATH: /home/runner/work/fonts/fonts
         working-directory: .ci/dashboard
-      - uses: stefanzweifel/git-auto-commit-action@v4
-        name: Commit any updated data files
-        with:
-          file_pattern: ".ci/dashboard/src/data/"
-
       # Now build the dashboard
       - name: Install Node.js
         uses: actions/setup-node@v3
@@ -80,6 +80,10 @@ jobs:
           curl https://fonts.google.com/metadata/fonts > build/family_data.json
           cp ../vf-tag-demo2.html build/vf-tag-demo2.html
         working-directory: .ci/dashboard
+      - name: Copy JSON files we need to well-known names
+        run: |
+          cp .ci/dashboard/build/_file/data/servers.*.json .ci/dashboard/build/_file/data/servers.json
+          cp .ci/dashboard/build/_file/data/versionhistory.*.json .ci/dashboard/build/_file/data/versionhistory.json
       - name: Upload build artifacts
         if: ${{ github.ref == 'refs/heads/main' }}
         uses: actions/upload-pages-artifact@v3.0.1