mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
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:
commit
cee940f50f
2 changed files with 50 additions and 0 deletions
47
.github/workflows/merge_docs.yaml
vendored
Normal file
47
.github/workflows/merge_docs.yaml
vendored
Normal 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 }}
|
||||
3
.github/workflows/upmerge_pr.yaml
vendored
3
.github/workflows/upmerge_pr.yaml
vendored
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue