aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2023-03-04 01:40:05 -0500
committerpg9182 <96569817+pg9182@users.noreply.github.com>2023-03-04 01:40:05 -0500
commitbaaea143f4a394b27136fe813f69517c69e74df0 (patch)
treeeee23938a7f38c375313516e7b7a8a3a76e4c682 /.github
parentc7bf685c325f944029226351fe6de6bd6cc2ceb8 (diff)
downloadAtlas-baaea143f4a394b27136fe813f69517c69e74df0.tar.gz
Atlas-baaea143f4a394b27136fe813f69517c69e74df0.zip
all: Update GitHub Actions config
* Update actions/checkout to v3. * Update actions/cache to v3. * Replace deprecated ::set-output. * Remove duplicate checkout.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml19
1 files changed, 9 insertions, 10 deletions
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')}}