diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4865a04..6bdd820 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: run: echo "GO_VERSION=$(cat .tool-versions | grep -oP 'golang \K((\w+.)+\w+)')" >> $GITHUB_ENV - name: Get golangci-lint version from .tool-versions run: echo "GOLANGCI_LINT_VERSION=$(cat .tool-versions | grep -oP 'golangci-lint \K((\w+.)+\w+)')" >> $GITHUB_ENV - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: go-version: '${{ env.GO_VERSION }}' - name: golangci-lint diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bea67a6..b666ce3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: - run: git fetch --force --tags - name: Get Go version from .tool-versions run: echo "GO_VERSION=$(cat .tool-versions | grep -oP 'golang \K((\w+.)+\w+)')" >> $GITHUB_ENV - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: go-version: '${{ env.GO_VERSION }}' - name: Get nfpm version from .tool-versions