From 07d2e8b1d384a32abefb0bf0c089c42c2acfa6d9 Mon Sep 17 00:00:00 2001 From: Dmitrii Safronov Date: Tue, 28 Apr 2026 11:07:07 +0400 Subject: [PATCH] ci: rm unused Signed-off-by: Dmitrii Safronov --- .github/workflows/release-stable.yaml | 66 --------------------------- 1 file changed, 66 deletions(-) delete mode 100644 .github/workflows/release-stable.yaml diff --git a/.github/workflows/release-stable.yaml b/.github/workflows/release-stable.yaml deleted file mode 100644 index b7d9769..0000000 --- a/.github/workflows/release-stable.yaml +++ /dev/null @@ -1,66 +0,0 @@ ---- -name: Release (stable) - -"on": - push: - branches: - - release - -jobs: - release: - name: "Release" - runs-on: ubuntu-latest - permissions: - contents: write - pull-requests: write - concurrency: - group: semantic-release - cancel-in-progress: false - steps: - - name: Checkout - uses: actions/checkout@v6 - with: - fetch-depth: 0 - token: ${{ secrets.SEMANTIC_RELEASE_TOKEN || secrets.GITHUB_TOKEN }} - - - name: Semantic release - run: | - docker run --rm \ - --user 1001 \ - -v ${{ github.workspace }}:/workspace \ - -w /workspace \ - -e GITHUB_TOKEN=${{ secrets.SEMANTIC_RELEASE_TOKEN || secrets.GITHUB_TOKEN }} \ - -e CI=true \ - ghcr.io/disafronov/semantic-release:latest - - - name: Sync release to main - if: success() - run: | - git config user.name "Release Bot" - git config user.email "noreply@github.com" - - # Fetch latest state after semantic-release pushed commits - # This ensures we get all commits that semantic-release created - git fetch origin - - # Check if main is already up to date with release - if git diff --quiet origin/main origin/release; then - echo "main is already up to date with release" - exit 0 - fi - - # Check if main is ancestor of release (can fast-forward) - if git merge-base --is-ancestor origin/main origin/release; then - echo "Fast-forwarding main to release" - git checkout -B main origin/main - git merge --ff-only origin/release - git push origin main - else - echo "Rebasing main onto release (force-with-lease required)" - git checkout -B main origin/main - git rebase origin/release - # Use --force-with-lease for safety: only push if remote hasn't changed - git push --force-with-lease origin main - fi - env: - GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN || secrets.GITHUB_TOKEN }}