Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow for automatic upmerge PR creating #15109

Merged
merged 1 commit into from
Jun 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/upmerge_pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Upmerge PR

on:
schedule:
-
cron: "0 2 * * *"
workflow_dispatch: ~

jobs:
upmerge:
runs-on: ubuntu-latest
if: github.repository == 'Sylius/Sylius'
name: "Upmerge PR"
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
include:
-
base_branch: "1.12"
target_branch: "1.13"

steps:
-
uses: actions/checkout@v3
with:
ref: ${{ matrix.base_branch }}

-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0

-
name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.SYLIUS_BOT_PAT }}
title: '[UPMERGE] ${{ matrix.base_branch }} -> ${{ matrix.target_branch }}'
body: |
This PR has been generated automatically.
For more details see [refactor.yaml](/Sylius/Sylius/blob/1.13/.github/workflows/upmerge_pr.yaml).

**Remember!** Use **rebase strategy** when merging this PR.
branch: "upmerge/${{ matrix.base_branch }}_${{ matrix.target_branch }}"
delete-branch: true
branch-suffix: "short-commit-hash"
base: ${{ matrix.target_branch }}