diff options
| author | BigCoke233 <hi@guhub.cn> | 2026-01-06 10:40:22 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2026-01-06 10:40:22 +0800 |
| commit | 707dbd5347895738ce02b4f22d6a6314a67778ad (patch) | |
| tree | 2994adf1f080cfe6c900d35c3281adc47624e81f /.github | |
| parent | fbe23cb1ec8f5bee2962a11f13b52c4080c3f38e (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
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/extract-data.yml | 9 |
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' |
