From f8526023a98f4e65e3ea903b0ffeb81b4a63775a Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 18 Feb 2024 13:09:52 +0800 Subject: [PATCH] ci: refine GitHub Actions Workflows - Update GitHub Actions workflow to checkout code with the correct reference - Remove duplicate checkout step in GitHub Actions workflow Signed-off-by: Bo-Yi Wu --- .github/workflows/go.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d61d329..2ee57ae 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -21,13 +21,15 @@ jobs: lint: runs-on: ubuntu-latest steps: + - name: Checkout Code + uses: actions/checkout@v4 + with: + ref: ${{ github.ref }} - name: Setup go uses: actions/setup-go@v5 with: go-version-file: "go.mod" check-latest: true - - name: Checkout repository - uses: actions/checkout@v4 - name: Setup golangci-lint uses: golangci/golangci-lint-action@v4 with: