From accf5812477929a7742adadad01b78701683a417 Mon Sep 17 00:00:00 2001 From: Cyrill Troxler Date: Thu, 15 Aug 2024 15:16:16 +0200 Subject: [PATCH] fix: pin go version instead of using "stable" we want to pin the minor version to avoid sudden breaking updates as we experienced with 1.23. --- .github/workflows/go.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index aecc435..1e9efa5 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: stable + go-version: '1.22' - run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ - name: golangci-lint uses: golangci/golangci-lint-action@v6 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad42f02..94b3806 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: - name: setup go uses: actions/setup-go@v5 with: - go-version: stable + go-version: '1.22' - run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ - name: Define goreleaser flags run: test -n "$(git tag --points-at HEAD)" || echo "GORELEASER_FLAGS=--snapshot" >> $GITHUB_ENV