summaryrefslogtreecommitdiff
path: root/.github/workflows/extract-data.yml
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2026-01-06 10:40:22 +0800
committerBigCoke233 <hi@guhub.cn>2026-01-06 10:40:22 +0800
commita36dd1ecb756dc52f34258b71d133598a0d221f8 (patch)
tree2994adf1f080cfe6c900d35c3281adc47624e81f /.github/workflows/extract-data.yml
parent2bc48fcd906b3699eb1324420de8655534588257 (diff)
fix(CI): data extraction not working properly
- link graph should be written to static directory, not public - jobs should run in sequence to avoid branch diversion Former-commit-id: 707dbd5347895738ce02b4f22d6a6314a67778ad
Diffstat (limited to '.github/workflows/extract-data.yml')
-rw-r--r--.github/workflows/extract-data.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/extract-data.yml b/.github/workflows/extract-data.yml
index ab9fba67..f465fb8a 100644
--- a/.github/workflows/extract-data.yml
+++ b/.github/workflows/extract-data.yml
@@ -9,6 +9,11 @@ on:
- 'scripts/*.go'
workflow_dispatch:
+# Prevent concurrent runs to avoid conflicts
+concurrency:
+ group: data-extraction
+ cancel-in-progress: true
+
jobs:
extract-highlights:
name: Extract Highlights
@@ -34,6 +39,7 @@ jobs:
generate-external-link-rank:
name: Generate External Link Rank
runs-on: ubuntu-latest
+ needs: extract-highlights
steps:
- name: Checkout repository
uses: actions/checkout@v4
@@ -55,6 +61,7 @@ jobs:
generate-link-graph:
name: Generate Internal Link Graph
runs-on: ubuntu-latest
+ needs: generate-external-link-rank
steps:
- name: Checkout repository
uses: actions/checkout@v4
@@ -71,4 +78,4 @@ jobs:
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'chore: update internal link graph data'
- file_pattern: 'public/link-graph.json'
+ file_pattern: 'static/link-graph.json'