From 4dd82b633bc2c51d4230825b79a4e184909d1468 Mon Sep 17 00:00:00 2001 From: galargh Date: Mon, 5 Dec 2022 10:40:49 +0100 Subject: [PATCH] chore: update official GitHub actions --- .github/workflows/test.yml | 4 ++-- CHANGELOG.md | 4 ++++ action.yml | 8 ++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 448973a..3a48345 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,10 +10,10 @@ jobs: go: ["1.16.x", "1.17.x"] fail-fast: false steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: path: cache-go-action - - uses: actions/setup-go@v2 + - uses: actions/setup-go@v3 with: go-version: ${{ matrix.go }} - uses: ./cache-go-action diff --git a/CHANGELOG.md b/CHANGELOG.md index 326bf7f..5e58df4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.1.1] - 2022-12-05 +### Changed +- updated official GitHub actions from v2 to v3 + ## [1.1.0] - 2021-12-14 ### Added - input `name` which is going to be used as part of the cache keys diff --git a/action.yml b/action.yml index 42c8b5f..a2bd232 100644 --- a/action.yml +++ b/action.yml @@ -2,14 +2,14 @@ name: 'Cache Go' description: 'Cache Go modules' inputs: name: - description: 'The name that is going to be used as a part of the cache keys' + description: 'The name that is going to be used as a part of the cache keys' required: true default: 'go' runs: using: "composite" steps: - if: ${{ runner.os == 'Linux' }} - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/.cache/go-build @@ -18,7 +18,7 @@ runs: restore-keys: | ${{ runner.os }}-${{ inputs.name }}- - if: ${{ runner.os == 'macOS' }} - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/Library/Caches/go-build @@ -27,7 +27,7 @@ runs: restore-keys: | ${{ runner.os }}-${{ inputs.name }}- - if: ${{ runner.os == 'Windows' }} - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | %LocalAppData%\go-build