From 45de075ee00d2fbd09d11cf01796a9d78752f93e Mon Sep 17 00:00:00 2001 From: XuPeng-SH Date: Fri, 13 Nov 2026 22:37:16 +0800 Subject: [PATCH] ci: bind Standalone regression to the merged commit --- .github/actionlint.yaml | 4 ++++ .github/workflows/merge-trigger-standalone.yaml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml index a675a7fe..fbf5d8c7 100644 --- a/.github/actionlint.yaml +++ b/.github/actionlint.yaml @@ -38,6 +38,10 @@ paths: ignore: # actionlint v1.7.12 predates this input's backport to checkout v6. - 'input "allow-unsafe-pr-checkout" is not defined in action "actions/checkout@v6"' + .github/workflows/merge-trigger-standalone.yaml: + ignore: + # actionlint v1.7.12 predates this input's backport to checkout v6. + - 'input "allow-unsafe-pr-checkout" is not defined in action "actions/checkout@v6"' .github/workflows/robot.yaml: ignore: # Existing legacy workflow; keep new changes clean without broadening diff --git a/.github/workflows/merge-trigger-standalone.yaml b/.github/workflows/merge-trigger-standalone.yaml index 71ae199d..5914d23d 100644 --- a/.github/workflows/merge-trigger-standalone.yaml +++ b/.github/workflows/merge-trigger-standalone.yaml @@ -25,6 +25,10 @@ jobs: with: token: ${{ secrets.TOKEN_ACTION }} path: ./matrixone + # pull_request_target otherwise checks out the default branch. + ref: ${{ github.event.pull_request.merge_commit_sha }} + # This job only executes after the commit has been merged. + allow-unsafe-pr-checkout: true - name: Set up Go uses: matrixorigin/CI/actions/setup-env@main with: @@ -139,6 +143,8 @@ jobs: with: token: ${{ secrets.TOKEN_ACTION }} path: ./head + ref: ${{ github.event.pull_request.merge_commit_sha }} + allow-unsafe-pr-checkout: true - name: Set up Go uses: matrixorigin/CI/actions/setup-env@main with: