You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By avoiding a client-side useEffect, we get static content that the
search crawler will be able to index. Then the full-text search can
match on content of the repo descriptions
- name: Find latest successful run of another workflow
50
+
id: find-run
51
+
env:
52
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53
+
run: |
54
+
run_id=$(gh run list \
55
+
--workflow "fetch_repo_metadata.yml" \
56
+
--branch main \
57
+
--json databaseId,status,conclusion \
58
+
--jq 'map(select(.status=="completed" and .conclusion=="success")) | first | .databaseId')
59
+
echo "run_id=$run_id" >> $GITHUB_OUTPUT
60
+
61
+
- name: Download and extract artifact
62
+
env:
63
+
GH_TOKEN: ${{ github.token }}
64
+
run: |
65
+
gh run download ${{ steps.find-run.outputs.run_id }} \
66
+
--name github_metadata \
67
+
--dir data/github_metadata
68
+
52
69
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
0 commit comments