summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2026-01-06 10:47:23 +0800
committerBigCoke233 <hi@guhub.cn>2026-01-06 10:47:23 +0800
commitb011c34c33073b9f7dfdf90e2753317eb2ef4bc5 (patch)
tree83f8441a14f5455f4164994065d24e158648992c /.github/workflows
parentc11afe75f3ed19d6e45f040448be39248ac44693 (diff)
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
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/extract-data.yml20
1 files changed, 18 insertions, 2 deletions
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: