From a36dd1ecb756dc52f34258b71d133598a0d221f8 Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Tue, 6 Jan 2026 10:40:22 +0800 Subject: 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 --- .github/workflows/extract-data.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '.github/workflows') 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' -- cgit v1.2.3