From e04e656f45efc5f04c2b9fc0bab479fe1c02ca9d Mon Sep 17 00:00:00 2001 From: Halo <33051351+Halo5082@users.noreply.github.com> Date: Fri, 19 Jun 2026 17:22:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DMAAUnified=20CI=20=E9=80=89?= =?UTF-8?q?=E9=94=99ref=E7=9A=84=E9=97=AE=E9=A2=98=20(#17143)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ci: checkout PR head for MAAUnified debug builds * fix(Avalonia): 删除倒反天罡的对主仓CI的相关测试 --- .github/workflows/ci-avalonia.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-avalonia.yml b/.github/workflows/ci-avalonia.yml index e7226e1660..e31eb252f3 100644 --- a/.github/workflows/ci-avalonia.yml +++ b/.github/workflows/ci-avalonia.yml @@ -39,13 +39,17 @@ jobs: runs-on: ubuntu-latest outputs: tag: ${{ steps.out.outputs.tag }} + checkout_sha: ${{ steps.out.outputs.checkout_sha }} steps: - id: out + env: + CHECKOUT_SHA: ${{ github.event.pull_request.head.sha || github.sha }} run: | + echo "checkout_sha=${CHECKOUT_SHA}" >> "$GITHUB_OUTPUT" if [[ "${GITHUB_REF}" == refs/tags/* ]]; then echo "tag=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT" else - echo "tag=preview-${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT" + echo "tag=preview-${CHECKOUT_SHA::7}" >> "$GITHUB_OUTPUT" fi build: @@ -77,6 +81,8 @@ jobs: steps: - uses: actions/checkout@v6 + with: + ref: ${{ needs.meta.outputs.checkout_sha }} - name: Fetch required submodules shell: bash