From 2ecd5927800cdce257ce89b0d62d112e02a31626 Mon Sep 17 00:00:00 2001 From: Pavel Kuznetsov Date: Sat, 7 Nov 2026 10:50:43 +0200 Subject: [PATCH 1/4] ci: reuse pinned 4FusionLab GitVersion calculation --- .github/workflows/gitversion.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/gitversion.yml b/.github/workflows/gitversion.yml index a081b63..7daf4e8 100644 --- a/.github/workflows/gitversion.yml +++ b/.github/workflows/gitversion.yml @@ -19,13 +19,7 @@ jobs: with: fetch-depth: 0 persist-credentials: false - - name: Install GitVersion - run: dotnet tool install GitVersion.Tool --tool-path "$RUNNER_TEMP/gitversion" --version 6.8.2 - - name: Calculate and validate version - shell: bash - run: | - set -euo pipefail - version="$("$RUNNER_TEMP/gitversion/dotnet-gitversion" /showvariable SemVer)" - test -n "$version" - echo "Calculated GitVersion SemVer: $version" - echo "### GitVersion: $version" >> "$GITHUB_STEP_SUMMARY" + - name: Calculate and validate version (shared platform) + uses: 4FusionLab/.github/.github/actions/resolve-version@ad9d60ba4aabc494b4f2c85d6c566a50ca423751 + with: + variable: SemVer From 0f9e870b9963c0aac56ec83e5b3b3463dfb5bb2e Mon Sep 17 00:00:00 2001 From: Pavel Kuznetsov Date: Sat, 7 Nov 2026 10:51:58 +0200 Subject: [PATCH 2/4] ci: reuse pinned shared version and runtime-change gates --- .github/workflows/release.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e788c58..9fddc2d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,13 +23,15 @@ jobs: with: fetch-depth: 0 persist-credentials: false - - run: python scripts/release_changes.py --self-test - - name: Detect addon changes - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + - name: Detect runtime changes (shared platform) id: impact - env: - BEFORE: ${{ github.event.before }} - run: python scripts/release_changes.py --before "$BEFORE" --after "$GITHUB_SHA" --github-output "$GITHUB_OUTPUT" + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + uses: 4FusionLab/.github/.github/actions/runtime-changes@ad9d60ba4aabc494b4f2c85d6c566a50ca423751 + with: + before: ${{ github.event.before }} + after: ${{ github.sha }} + paths-file: .github/release-paths.txt + test: needs: changes outputs: @@ -44,15 +46,10 @@ jobs: - uses: actions/setup-python@v6 with: python-version: '3.11' - - name: Derive package version from GitVersion - id: version - shell: bash - run: | - set -euo pipefail - dotnet tool install GitVersion.Tool --tool-path "$RUNNER_TEMP/gitversion" --version 6.8.2 - version="$("$RUNNER_TEMP/gitversion/dotnet-gitversion" /showvariable MajorMinorPatch)" - [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] - echo "version=$version" >> "$GITHUB_OUTPUT" + - name: Resolve GitVersion (shared platform) + id: gitversion + uses: 4FusionLab/.github/.github/actions/resolve-version@ad9d60ba4aabc494b4f2c85d6c566a50ca423751 + - name: Check Python and package all platform ZIPs shell: bash run: | From 207c012058f95d4f067571d8df0c08c4211eea4d Mon Sep 17 00:00:00 2001 From: Pavel Kuznetsov Date: Sat, 7 Nov 2026 10:52:07 +0200 Subject: [PATCH 3/4] fix(ci): retain RuEn version step output identity --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9fddc2d..36e922c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,7 +47,7 @@ jobs: with: python-version: '3.11' - name: Resolve GitVersion (shared platform) - id: gitversion + id: version uses: 4FusionLab/.github/.github/actions/resolve-version@ad9d60ba4aabc494b4f2c85d6c566a50ca423751 - name: Check Python and package all platform ZIPs From d875e566f43173bfa648c635669187843cf356ea Mon Sep 17 00:00:00 2001 From: Pavel Kuznetsov Date: Sat, 7 Nov 2026 10:53:11 +0200 Subject: [PATCH 4/4] ci: share RuEn release notes and three-platform Fusion ZIP verification --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 36e922c..8706f21 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,6 +56,14 @@ jobs: set -euo pipefail python -m unittest discover -s tests -v python scripts/package.py --version "${{ steps.version.outputs.version }}" + - name: Generate release notes for validation (shared platform) + if: github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.changes.outputs.release == 'true' + uses: 4FusionLab/.github/.github/actions/release-notes@ad9d60ba4aabc494b4f2c85d6c566a50ca423751 + with: + product: RuEn + version: ${{ steps.version.outputs.version }} + candidate: docs/releases/${{ steps.version.outputs.version }}.md + output: ${{ runner.temp }}/release-notes.md - name: Validate release candidate when runtime changed if: github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.changes.outputs.release == 'true' shell: bash @@ -63,8 +71,6 @@ jobs: VERSION: ${{ steps.version.outputs.version }} run: | set -euo pipefail - python scripts/release_notes.py --product RuEn --version "$VERSION" \ - --output "$RUNNER_TEMP/release-notes.md" --candidate "docs/releases/$VERSION.md" python scripts/release_contract.py --version "$VERSION" --tag "v$VERSION" \ --channel stable --manifest RuEn/RuEn.manifest \ --archive "dist/RuEn-$VERSION-universal.zip" \ @@ -98,6 +104,24 @@ jobs: with: name: RuEn-distributions path: dist + - name: Generate release notes for publication (shared platform) + uses: 4FusionLab/.github/.github/actions/release-notes@ad9d60ba4aabc494b4f2c85d6c566a50ca423751 + with: + product: RuEn + version: ${{ needs.test.outputs.version }} + candidate: docs/releases/${{ needs.test.outputs.version }}.md + output: ${{ runner.temp }}/release-notes.md + - name: Verify platform ZIPs (shared platform) + uses: 4FusionLab/.github/.github/actions/verify-archive@ad9d60ba4aabc494b4f2c85d6c566a50ca423751 + with: + product: RuEn + version: ${{ needs.test.outputs.version }} + archives: | + dist/RuEn-${{ needs.test.outputs.version }}-universal.zip + dist/RuEn-${{ needs.test.outputs.version }}-macos.zip + dist/RuEn-${{ needs.test.outputs.version }}-windows.zip + manifest: RuEn/RuEn.manifest + notes: ${{ runner.temp }}/release-notes.md - name: Verify packages and publish immutable release shell: bash env: @@ -106,8 +130,6 @@ jobs: run: | set -euo pipefail tag="v$VERSION" - python scripts/release_notes.py --product RuEn --version "$VERSION" \ - --output "$RUNNER_TEMP/release-notes.md" --candidate "docs/releases/$VERSION.md" python scripts/release_contract.py --version "$VERSION" --tag "$tag" \ --channel stable --manifest RuEn/RuEn.manifest \ --archive "dist/RuEn-$VERSION-universal.zip" \