From e77b9bb3d27324a8822c54e2556d7461f4eb5459 Mon Sep 17 00:00:00 2001 From: Meier Lukas Date: Thu, 30 Apr 2026 18:28:32 +0200 Subject: [PATCH] ci: support releases on next branch (#5599) Co-authored-by: Copilot --- .github/workflows/deployment-docker-image.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deployment-docker-image.yml b/.github/workflows/deployment-docker-image.yml index cec31c489..12d3025cd 100644 --- a/.github/workflows/deployment-docker-image.yml +++ b/.github/workflows/deployment-docker-image.yml @@ -5,6 +5,7 @@ on: branches: - main - beta + - next - dev workflow_dispatch: inputs: @@ -34,7 +35,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 env: - SKIP_RELEASE: ${{ github.event_name == 'workflow_dispatch' || github.ref_name == 'dev' }} + SKIP_RELEASE: ${{ github.event_name == 'workflow_dispatch' || github.ref_name == 'dev' || github.ref_name == 'next' }} outputs: version: ${{ steps.read-semver.outputs.version || steps.version-fallback.outputs.version }} git_ref: ${{ steps.read-git-ref.outputs.ref || github.ref }} @@ -54,7 +55,7 @@ jobs: with: private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }} app-id: ${{ secrets.RENOVATE_MERGE_APP_ID }} - permission-contents: write # required to commit package.json & changelog changes, merge them to dev and publish the release + permission-contents: write # required to commit package.json & changelog changes, merge them to dev / next and publish the release - uses: actions/checkout@v6 if: env.SKIP_RELEASE == 'false' @@ -95,20 +96,21 @@ jobs: id: read-git-ref run: | echo "ref=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" - - name: Update dev branch + - name: Update dev / next branch if: env.SKIP_RELEASE == 'false' continue-on-error: true # Prevent pipeline from failing when merge fails env: GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }} + UPSTREAM_BRANCH: ${{ github.ref_name == 'main' && 'dev' || 'next' }} run: | git config user.name "Releases Homarr" git config user.email "175486441+homarr-releases[bot]@users.noreply.github.com" git remote set-url origin https://x-access-token:${{ steps.obtainToken.outputs.token }}@github.com/${{ github.repository }}.git - git fetch origin dev - git checkout dev - git pull origin dev + git fetch origin ${{ env.UPSTREAM_BRANCH }} + git checkout ${{ env.UPSTREAM_BRANCH }} + git pull origin ${{ env.UPSTREAM_BRANCH }} git rebase ${{ github.ref_name }} - git push origin dev + git push origin ${{ env.UPSTREAM_BRANCH }} build-amd64: name: Build docker image for amd64 needs: release