From afecddfe045e8311c6ee6bccf4456b9f6dd8e6f3 Mon Sep 17 00:00:00 2001 From: cuisongliu Date: Wed, 16 Oct 2024 14:38:28 +0800 Subject: [PATCH] feat(main): upgrade go version to workflow (#49) Signed-off-by: cuisongliu --- .github/workflows/pr.yml | 4 ++-- .github/workflows/push.yml | 8 ++++---- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 12 ++++++------ 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 514fed4..4d316fb 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -12,9 +12,9 @@ jobs: uses: actions/checkout@master - name: Set up Go - uses: actions/setup-go@master + uses: actions/setup-go@v5 with: - go-version: 1.23.x + go-version-file: go.mod - name: build run: | diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 29aa20f..088de26 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -12,9 +12,9 @@ jobs: uses: actions/checkout@master - name: Set up Go - uses: actions/setup-go@master + uses: actions/setup-go@v5 with: - go-version: 1.23.x + go-version-file: go.mod - name: Prepare id: prepare @@ -48,9 +48,9 @@ jobs: uses: actions/checkout@master - name: Set up Go - uses: actions/setup-go@master + uses: actions/setup-go@v5 with: - go-version: 1.23.x + go-version-file: go.mod - name: Verify sealos run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 24be23f..14e8ca3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,9 +13,9 @@ jobs: uses: actions/checkout@master - name: Set up Go - uses: actions/setup-go@master + uses: actions/setup-go@v5 with: - go-version: 1.23.x + go-version-file: go.mod - name: Prepare id: prepare diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7380df2..d00a30e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,9 +16,9 @@ jobs: uses: actions/checkout@master - name: Set up Go - uses: actions/setup-go@master + uses: actions/setup-go@v5 with: - go-version: 1.23.x + go-version-file: go.mod - name: build run: | @@ -30,9 +30,9 @@ jobs: uses: actions/checkout@master - name: Set up Go - uses: actions/setup-go@master + uses: actions/setup-go@v5 with: - go-version: 1.23.x + go-version-file: go.mod - name: Verify sealos run: | @@ -59,9 +59,9 @@ jobs: uses: actions/checkout@master - name: Set up Go - uses: actions/setup-go@master + uses: actions/setup-go@v5 with: - go-version: 1.23.x + go-version-file: go.mod - name: Verify sealos run: |