From 95b366eda6ae77926fdfe69f76e8b7a5ef0ad241 Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Tue, 6 Jan 2026 10:47:23 +0800 Subject: refactor(CI/extract-data): drop needs constraints and run jobs concurrently now that they pull before push, it's less likely to diverge and fail to push Former-commit-id: b011c34c33073b9f7dfdf90e2753317eb2ef4bc5 --- .github/workflows/extract-data.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/extract-data.yml b/.github/workflows/extract-data.yml index f465fb8a..40d15121 100644 --- a/.github/workflows/extract-data.yml +++ b/.github/workflows/extract-data.yml @@ -30,6 +30,12 @@ jobs: - name: Run extract_highlights.go run: go run scripts/extract_highlights.go + - name: Pull latest changes + run: | + git config user.name github-actions + git config user.email github-actions@github.com + git pull origin master --rebase + - name: Commit highlights data uses: stefanzweifel/git-auto-commit-action@v5 with: @@ -39,7 +45,6 @@ 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 @@ -52,6 +57,12 @@ jobs: - name: Run get_external_link_rank.go run: go run scripts/get_external_link_rank.go + - name: Pull latest changes + run: | + git config user.name github-actions + git config user.email github-actions@github.com + git pull origin master --rebase + - name: Commit external links data uses: stefanzweifel/git-auto-commit-action@v5 with: @@ -61,7 +72,6 @@ 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 @@ -74,6 +84,12 @@ jobs: - name: Run get_internal_link_graph.go run: go run scripts/get_internal_link_graph.go + - name: Pull latest changes + run: | + git config user.name github-actions + git config user.email github-actions@github.com + git pull origin master --rebase + - name: Commit link graph data uses: stefanzweifel/git-auto-commit-action@v5 with: -- cgit v1.2.3