diff --git a/.github/workflows/ci-check.yml b/.github/workflows/ci-check.yml index 2b227db1e..0657d77b0 100644 --- a/.github/workflows/ci-check.yml +++ b/.github/workflows/ci-check.yml @@ -20,7 +20,7 @@ jobs: shell: cmd steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 with: fetch-depth: 0 diff --git a/.github/workflows/conda-pack-build.yml b/.github/workflows/conda-pack-build.yml index 2730ff4d1..fe1fc3358 100644 --- a/.github/workflows/conda-pack-build.yml +++ b/.github/workflows/conda-pack-build.yml @@ -78,7 +78,7 @@ jobs: echo "should_build=false" >> $GITHUB_OUTPUT fi - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 if: steps.should_build.outputs.should_build == 'true' with: ref: ${{ github.event.inputs.branch || github.event.workflow_run.head_sha || github.ref }} diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 3e4b07ddf..2bfd5fe46 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -44,7 +44,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v6 + uses: actions/checkout@v7 with: # workflow_run 时使用触发工作流的分支,手动触发时使用输入的分支 ref: ${{ github.event.workflow_run.head_branch || github.event.inputs.branch || github.ref }} diff --git a/.github/workflows/multi-platform-build.yml b/.github/workflows/multi-platform-build.yml index 5d3496a08..1ce1c51b3 100644 --- a/.github/workflows/multi-platform-build.yml +++ b/.github/workflows/multi-platform-build.yml @@ -80,7 +80,7 @@ jobs: shell: bash -l {0} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 with: # 如果是 workflow_run 触发,使用触发 CI Check 的 commit ref: ${{ github.event.workflow_run.head_sha || github.event.release.tag_name || github.ref }} diff --git a/.github/workflows/unilabos-conda-build.yml b/.github/workflows/unilabos-conda-build.yml index f269606c3..082aafd60 100644 --- a/.github/workflows/unilabos-conda-build.yml +++ b/.github/workflows/unilabos-conda-build.yml @@ -73,7 +73,7 @@ jobs: shell: bash -l {0} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 with: # 如果是 workflow_run 触发,使用上游 conda 包构建的 commit ref: ${{ github.event.workflow_run.head_sha || github.ref }}