From 93fa811a5ec4ca58ddcab93ae22972fad08e0633 Mon Sep 17 00:00:00 2001 From: hz Date: Tue, 8 Oct 2024 19:31:54 +0800 Subject: [PATCH] upgrade gh actions --- .github/workflows/go.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b4b2fe4..0e0c8db 100755 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -40,12 +40,12 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v3 - - uses: actions/cache@v2 + uses: actions/checkout@v4 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -77,14 +77,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: 1.21.x - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 #with: # path: ./src/github.com/${{ github.repository }} - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -117,7 +117,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') # in job..if, 'env' is not available !! steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 if: env.ENABLE_Simple_Release != 0 # - name: Generate Changelog # run: echo "# Good things have arrived" > ${{ github.workspace }}-CHANGELOG.txt @@ -164,7 +164,7 @@ jobs: fi done - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 if: env.ENABLE_Simple_Release != 0 with: generate_release_notes: true @@ -194,14 +194,14 @@ jobs: BINARIES_ASC: ./bin/binaries.asc steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: 1.21.x - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 #with: # path: ./src/github.com/${{ github.repository }} - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}