From baaea143f4a394b27136fe813f69517c69e74df0 Mon Sep 17 00:00:00 2001 From: pg9182 <96569817+pg9182@users.noreply.github.com> Date: Sat, 4 Mar 2023 01:40:05 -0500 Subject: all: Update GitHub Actions config * Update actions/checkout to v3. * Update actions/cache to v3. * Replace deprecated ::set-output. * Remove duplicate checkout. --- .github/workflows/ci.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9cec2f6..a447cfb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,32 +16,31 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@v1 - - uses: actions/setup-go@v3 with: go-version: ${{matrix.go}} - name: Get Go cache path id: go-cache + shell: bash run: | - echo "::set-output name=goos::$(go env GOOS)" - echo "::set-output name=goarch::$(go env GOARCH)" - echo "::set-output name=goversion::$(go env GOVERSION)" - echo "::set-output name=gocache::$(go env GOCACHE)" - echo "::set-output name=gomodcache::$(go env GOMODCACHE)" + echo "goos=$(go env GOOS)" >> $GITHUB_OUTPUT + echo "goarch=$(go env GOARCH)" >> $GITHUB_OUTPUT + echo "goversion=$(go env GOVERSION)" >> $GITHUB_OUTPUT + echo "gocache=$(go env GOCACHE)" >> $GITHUB_OUTPUT + echo "gomodcache=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Go build cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{steps.go-cache.outputs.gocache}} key: ${{steps.go-cache.outputs.goversion}}-${{steps.go-cache.outputs.goos}}-${{steps.go-cache.outputs.goarch}}-go-build-${{hashFiles('**/go.sum')}} - name: Go mod cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{steps.go-cache.outputs.gomodcache}} key: ${{steps.go-cache.outputs.goversion}}-${{steps.go-cache.outputs.goos}}-${{steps.go-cache.outputs.goarch}}-go-mod-${{hashFiles('**/go.sum')}} -- cgit v1.2.3