Skip to content

Commit 5bc5ddc

Browse files
kim-emclaude
andcommitted
fix(ci): use local get-mathlib-ci action in crossref_review.yml
validate-ci-scripts-paths fails CI for direct actions/checkout of mathlib-ci. Switch to the local composite action under .github/actions/get-mathlib-ci, matching olean_report_wf_run.yaml and the other workflow_run jobs. The composite action sets CI_SCRIPTS_DIR and pins the mathlib-ci ref via .github/workflows/update_dependencies.yml. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 391e717 commit 5bc5ddc

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/crossref_review.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,21 @@ jobs:
4444
pr_number=outputs.pr_number
4545
head_sha=outputs.head_sha
4646
47-
- name: Checkout mathlib-ci
47+
# Use the local composite action so the pinned mathlib-ci ref is the
48+
# single source of truth (matches olean_report.yaml, etc.). The
49+
# validate-ci-scripts-paths lint requires this.
50+
- name: Checkout local actions
4851
if: steps.bridge.outputs.pr_number != ''
4952
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5053
with:
51-
repository: leanprover-community/mathlib-ci
52-
ref: master
53-
path: mathlib-ci
54+
ref: ${{ github.workflow_sha }}
55+
fetch-depth: 1
56+
sparse-checkout: .github/actions
57+
path: workflow-actions
58+
59+
- name: Get mathlib-ci
60+
if: steps.bridge.outputs.pr_number != ''
61+
uses: ./workflow-actions/.github/actions/get-mathlib-ci
5462

5563
- name: Run cross-reference review
5664
if: steps.bridge.outputs.pr_number != ''
@@ -59,4 +67,4 @@ jobs:
5967
PR_NUMBER: ${{ steps.bridge.outputs.pr_number }}
6068
HEAD_SHA: ${{ steps.bridge.outputs.head_sha }}
6169
TSV_PATH: ${{ github.workspace }}/.bridge/crossref-tags.tsv
62-
run: bash mathlib-ci/scripts/crossref_review/post-comment.sh
70+
run: bash "${CI_SCRIPTS_DIR}/crossref_review/post-comment.sh"

0 commit comments

Comments
 (0)