From 2a2fb86ca0298545536c54022926197db15e23f7 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 30 Oct 2026 20:24:32 +0100 Subject: [PATCH] ci: update toolchains and let renovate update action inputs (#40092) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Let renovate update hyphenated action inputs like `python-version` - Python 3.14 → 3.15 in CI - Download gh 2.103.2 directly in the release workflow instead of using `install-gh-cli-action` with 2.39.1 - Devcontainer Go image 1.26 → 1.27 - Snap build toolchains Go 1.26 → 1.27 and Node 24 → 26 --- .devcontainer/devcontainer.json | 2 +- .github/actions/python-setup/action.yml | 2 +- .github/workflows/release-tag-version.yml | 8 +++----- renovate.json5 | 2 +- snap/snapcraft.yaml | 2 +- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 4863391f394..cafa45a0ccb 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "Gitea DevContainer", - "image": "mcr.microsoft.com/devcontainers/go:1.26-trixie", + "image": "mcr.microsoft.com/devcontainers/go:1.27-trixie", "containerEnv": { // override "local" from packaged version "GOTOOLCHAIN": "auto" diff --git a/.github/actions/python-setup/action.yml b/.github/actions/python-setup/action.yml index a8063ea8a48..9ae0a34145f 100644 --- a/.github/actions/python-setup/action.yml +++ b/.github/actions/python-setup/action.yml @@ -6,5 +6,5 @@ runs: steps: - uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0 with: - python-version: 3.14 + python-version: 3.15 # renovate: datasource=python-version depName=python versioning=python save-cache: ${{ github.workflow == 'cache-seeder' }} diff --git a/.github/workflows/release-tag-version.yml b/.github/workflows/release-tag-version.yml index 211946013bf..722c5c8f2a1 100644 --- a/.github/workflows/release-tag-version.yml +++ b/.github/workflows/release-tag-version.yml @@ -68,10 +68,6 @@ jobs: BRANCH: ${{ steps.clean_name.outputs.branch }} run: | aws s3 sync dist/release "s3://$CLOUDFLARE_R2_BUCKET/gitea/$BRANCH" --endpoint-url "https://$CLOUDFLARE_R2_ACCOUNT_ID.r2.cloudflarestorage.com" --no-progress - - name: Install GH CLI - uses: dev-hanz-ops/install-gh-cli-action@6089bdde54118ad7ca3d22053eb2d69387fd2779 # v0.3.0 - with: - gh-cli-version: 2.39.1 - id: range run: | previous=$(git tag --list --sort=-v:refname | grep -xE 'v[0-9]+\.[0-9]+\.[0-9]+' | grep -A1 -xF "$GITHUB_REF_NAME" | tail -1) # highest stable version below this one @@ -85,10 +81,12 @@ jobs: args: --tag ${{ github.ref_name }} ${{ steps.range.outputs.range }} - name: create github release env: + GH_CLI_VERSION: 2.103.2 # renovate: datasource=github-releases depName=cli/cli extractVersion=^v(?.+)$ GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} TAG: ${{ github.ref_name }} run: | - gh release create "$TAG" --title "$TAG" --notes-file git-cliff/CHANGELOG.md dist/release/* + curl -fsSL "https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz" | tar xz --strip-components=2 "gh_${GH_CLI_VERSION}_linux_amd64/bin/gh" + ./gh release create "$TAG" --title "$TAG" --notes-file git-cliff/CHANGELOG.md dist/release/* container: runs-on: namespace-profile-gitea-release-docker diff --git a/renovate.json5 b/renovate.json5 index 78a45f9f6af..bc7d384ad1c 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -41,7 +41,7 @@ "customType": "regex", "managerFilePatterns": ["/(^|/)\\.(gitea|github)/(workflows|actions)/.+\\.ya?ml$/"], "matchStrings": [ - "[A-Za-z0-9_]+_VERSION[ \\t]*:[ \\t]*[\"']?(?[^\\s\"']+)[\"']?[ \\t]*# renovate: datasource=(?[a-zA-Z0-9-._]+) depName=(?\\S+)(?: (?:lookupName|packageName)=(?\\S+))?(?: versioning=(?\\S+))?(?: extractVersion=(?\\S+))?(?: registryUrl=(?\\S+))?", + "[A-Za-z0-9_-]+[ \\t]*:[ \\t]*[\"']?(?[^\\s\"']+)[\"']?[ \\t]*# renovate: datasource=(?[a-zA-Z0-9-._]+) depName=(?\\S+)(?: (?:lookupName|packageName)=(?\\S+))?(?: versioning=(?\\S+))?(?: extractVersion=(?\\S+))?(?: registryUrl=(?\\S+))?", ], }, { diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 084c13cc8e3..4e33c6aa226 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -47,7 +47,7 @@ parts: source: . stage-packages: [ git, sqlite3, openssh-client ] build-packages: [ git, libpam0g-dev, libsqlite3-dev, build-essential] - build-snaps: [ go/1.26/stable, node/24/stable ] + build-snaps: [ go/1.27/stable, node/26/stable ] build-environment: - LDFLAGS: "" override-pull: craftctl default && ./snap/part-gitea-pull.sh