Merge branch '2.0' into 2.0-docs

* 2.0:
  [CI] Add GH action to synchronize 2.0 branch with GitBook docs branch
  [CI] Add 2.0-docs branch to upmerges
This commit is contained in:
Grzegorz Sadowski 2024-11-05 06:57:24 +01:00
commit cee940f50f
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364
2 changed files with 50 additions and 0 deletions

47
.github/workflows/merge_docs.yaml vendored Normal file
View file

@ -0,0 +1,47 @@
name: Merge GitBook Documentation
on:
schedule:
-
cron: "0 3 * * *"
workflow_dispatch: ~
permissions:
contents: write
pull-requests: write
jobs:
merge_docs:
runs-on: ubuntu-latest
if: github.repository == 'Sylius/Sylius'
name: "Merge GitBook Documentation"
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
include:
-
docs_branch: "2.0-docs"
target_branch: "2.0"
steps:
-
uses: actions/checkout@v4
with:
ref: ${{ matrix.target_branch }}
-
name: Reset docs branch
run: |
git fetch origin ${{ matrix.docs_branch }}:${{ matrix.docs_branch }}
git reset --hard ${{ matrix.docs_branch }}
-
name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.SYLIUS_BOT_PAT }}
title: '[DOCUMENTATION] Synchronize ${{ matrix.docs_branch }} -> ${{ matrix.target_branch }}'
branch: "docs/${{ matrix.docs_branch }}_${{ matrix.target_branch }}"
delete-branch: true
base: ${{ matrix.target_branch }}

View file

@ -29,6 +29,9 @@ jobs:
-
base_branch: "1.14"
target_branch: "2.0"
-
base_branch: "2.0"
target_branch: "2.0-docs"
-
base_branch: "2.0"
target_branch: "sylius-stack"