Skip to content

Upmerge PR

Upmerge PR #186

Workflow file for this run

name: Upmerge PR
on:
schedule:
-
cron: "0 2 * * *"
workflow_dispatch:
inputs:
base_branch:
description: "Source branch (leave empty for default matrix)"
required: false
type: string
target_branch:
description: "Target branch (leave empty for default matrix)"
required: false
type: string
permissions:
contents: write
pull-requests: write
jobs:
# Scheduled runs or manual without inputs - use matrix
upmerge-matrix:
if: github.repository == 'Sylius/CmsPlugin' && !inputs.base_branch
runs-on: ubuntu-latest
name: "Upmerge PR"
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
include:
-
base_branch: "1.0"
target_branch: "1.1"
steps:
-
uses: actions/checkout@v4
with:
ref: ${{ matrix.target_branch }}
-
uses: SyliusLabs/UpmergeAction@v1
with:
base_branch: ${{ matrix.base_branch }}
target_branch: ${{ matrix.target_branch }}
token: ${{ secrets.SYLIUS_BOT_PAT }}
# Manual with custom inputs
upmerge-custom:
if: github.repository == 'Sylius/CmsPlugin' && inputs.base_branch
runs-on: ubuntu-latest
name: "Upmerge PR (${{ inputs.base_branch }} -> ${{ inputs.target_branch }})"
timeout-minutes: 5
steps:
-
uses: actions/checkout@v4
with:
ref: ${{ inputs.target_branch }}
-
uses: SyliusLabs/UpmergeAction@v1
with:
base_branch: ${{ inputs.base_branch }}
target_branch: ${{ inputs.target_branch }}
token: ${{ secrets.SYLIUS_BOT_PAT }}