From 75e60afc8a7a05149cf2c8fb1b6a8b0f4b081d42 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 5 Apr 2026 23:51:54 +0800 Subject: [PATCH] chore: Add code checkout step in CI workflow - Introduced a checkout step in the pr-test.yml workflow to ensure the code is available for subsequent actions, using actions/checkout@v4 with the specified reference. --- .github/workflows/pr-test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index e25283d..0e3fb63 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -59,6 +59,11 @@ jobs: body: 'Thank you for the PR! The test workflow ( GO:${{ matrix.go }} DB:${{ matrix.db }} is running, the results of the run will be commented later.' }); + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ env.HEAD }} + - name: Setup ${{ matrix.db }} uses: ./.github/actions/setup-db with: