From dc354ae0f7e1eb59ec688c22adbd054adc95728d Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Wed, 6 Mar 2024 12:14:34 +0800 Subject: [PATCH] Revert "[CI] pin go v1.21.8 version" This reverts commit ac0f58035f2f4ad060ec3efcb4f2c7dd8558be13. --- .forgejo/workflows/build-release.yml | 3 ++- .forgejo/workflows/cascade-setup-end-to-end.yml | 2 +- .forgejo/workflows/e2e.yml | 3 ++- .forgejo/workflows/publish-release.yml | 2 +- .forgejo/workflows/testing.yml | 10 +++++----- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.forgejo/workflows/build-release.yml b/.forgejo/workflows/build-release.yml index ef5c68d191..c012991b3a 100644 --- a/.forgejo/workflows/build-release.yml +++ b/.forgejo/workflows/build-release.yml @@ -43,7 +43,8 @@ jobs: - uses: https://code.forgejo.org/actions/setup-go@v4 with: - go-version: "1.21.8" + go-version: "1.21" + check-latest: true - name: version from ref id: release-info diff --git a/.forgejo/workflows/cascade-setup-end-to-end.yml b/.forgejo/workflows/cascade-setup-end-to-end.yml index b8269e1d35..85871ec31d 100644 --- a/.forgejo/workflows/cascade-setup-end-to-end.yml +++ b/.forgejo/workflows/cascade-setup-end-to-end.yml @@ -67,7 +67,7 @@ jobs: chown -R forgejo:forgejo . - uses: https://code.forgejo.org/actions/setup-go@v4 with: - go-version: "1.21.8" + go-version: "1.21" - name: make deps-backend run: | su forgejo -c 'make deps-backend' diff --git a/.forgejo/workflows/e2e.yml b/.forgejo/workflows/e2e.yml index 7ace817bc1..2104f6a067 100644 --- a/.forgejo/workflows/e2e.yml +++ b/.forgejo/workflows/e2e.yml @@ -17,7 +17,8 @@ jobs: - uses: https://code.forgejo.org/actions/checkout@v4 - uses: https://code.forgejo.org/actions/setup-go@v4 with: - go-version: "1.21.8" + go-version: "~1.21" + check-latest: true - run: | apt-get -qq update apt-get -qq install -q sudo diff --git a/.forgejo/workflows/publish-release.yml b/.forgejo/workflows/publish-release.yml index 68fb68eb75..eaa14c3693 100644 --- a/.forgejo/workflows/publish-release.yml +++ b/.forgejo/workflows/publish-release.yml @@ -64,7 +64,7 @@ jobs: if: vars.ROLE == 'forgejo-experimental' && secrets.OVH_APP_KEY != '' uses: https://code.forgejo.org/actions/setup-go@v4 with: - go-version: "1.21.8" + go-version: "1.21" check-latest: true - name: update the _release.experimental DNS record if: vars.ROLE == 'forgejo-experimental' && secrets.OVH_APP_KEY != '' diff --git a/.forgejo/workflows/testing.yml b/.forgejo/workflows/testing.yml index 1bc23e16b0..80fd87152e 100644 --- a/.forgejo/workflows/testing.yml +++ b/.forgejo/workflows/testing.yml @@ -17,7 +17,7 @@ jobs: - uses: https://code.forgejo.org/actions/checkout@v3 - uses: https://code.forgejo.org/actions/setup-go@v4 with: - go-version: "1.21.8" + go-version: "1.21" check-latest: true - run: make deps-backend deps-tools - run: make --always-make -j$(nproc) lint-backend checks-backend # ensure the "go-licenses" make target runs @@ -51,7 +51,7 @@ jobs: - uses: https://code.forgejo.org/actions/checkout@v3 - uses: https://code.forgejo.org/actions/setup-go@v4 with: - go-version: "1.21.8" + go-version: "1.21" - run: | git config --add safe.directory '*' adduser --quiet --comment forgejo --disabled-password forgejo @@ -96,7 +96,7 @@ jobs: - uses: https://code.forgejo.org/actions/checkout@v3 - uses: https://code.forgejo.org/actions/setup-go@v4 with: - go-version: "1.21.8" + go-version: "1.21" - name: install dependencies & git >= 2.42 run: | export DEBIAN_FRONTEND=noninteractive @@ -143,7 +143,7 @@ jobs: - uses: https://code.forgejo.org/actions/checkout@v3 - uses: https://code.forgejo.org/actions/setup-go@v4 with: - go-version: "1.21.8" + go-version: "1.21" - name: install dependencies & git >= 2.42 run: | export DEBIAN_FRONTEND=noninteractive @@ -180,7 +180,7 @@ jobs: - uses: https://code.forgejo.org/actions/checkout@v3 - uses: https://code.forgejo.org/actions/setup-go@v4 with: - go-version: "1.21.8" + go-version: "1.21" - name: install dependencies & git >= 2.42 run: | export DEBIAN_FRONTEND=noninteractive