From d6a17c1fe7f9dd9f4522fb9a922604076348267a Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Thu, 19 Sep 2024 20:48:21 +0200 Subject: [PATCH] [ticket/17396] Fetch full history and branch 3.3.x if merging to master PHPBB-17396 --- .github/workflows/merge_3.3.x_to_master.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/merge_3.3.x_to_master.yml b/.github/workflows/merge_3.3.x_to_master.yml index 2863fa8c1e..4aec43cded 100644 --- a/.github/workflows/merge_3.3.x_to_master.yml +++ b/.github/workflows/merge_3.3.x_to_master.yml @@ -12,6 +12,9 @@ jobs: steps: - name: Checkout the repository uses: actions/checkout@v4 + with: + fetch-depth: 0 # Fetch full history for proper merging + ref: 3.3.x # Checkout the 3.3.x branch - name: Fetch the latest commit information id: get-commit-info @@ -35,9 +38,7 @@ jobs: run: git fetch --all - name: Merge 3.3.x into master - # First checkout 3.3.x and master to track from origin, then try merging to master run: | - git checkout 3.3.x git checkout master if git merge --no-ff 3.3.x; then echo "merge_failed=false" >> $GITHUB_ENV