2023-10-03 21:07:17 +02:00
|
|
|
name: Create master promotion pull request
|
2023-10-01 19:01:43 +02:00
|
|
|
on:
|
|
|
|
# Allow to manually trigger the workflow
|
|
|
|
workflow_dispatch:
|
2023-10-03 21:07:17 +02:00
|
|
|
# Run it when when someone pushes to testing
|
2023-10-01 19:01:43 +02:00
|
|
|
push:
|
|
|
|
branches:
|
2023-10-03 21:07:17 +02:00
|
|
|
- testing
|
2023-10-01 19:01:43 +02:00
|
|
|
jobs:
|
2023-10-03 21:07:17 +02:00
|
|
|
masterPromotion:
|
2023-10-01 19:01:43 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
2023-10-03 21:07:17 +02:00
|
|
|
ref: master
|
2023-10-01 19:01:43 +02:00
|
|
|
- name: Reset promotion branch
|
|
|
|
run: |
|
2023-10-03 21:07:17 +02:00
|
|
|
git fetch origin testing:testing
|
|
|
|
git reset --hard testing
|
2023-10-01 19:01:43 +02:00
|
|
|
- name: Create Pull Request
|
|
|
|
uses: peter-evans/create-pull-request@v5
|
|
|
|
with:
|
2023-10-03 21:07:17 +02:00
|
|
|
branch: master-promotion
|
|
|
|
title: 'Upgrade master from testing'
|
2023-10-01 20:41:07 +02:00
|
|
|
body: |
|
2023-10-03 21:07:17 +02:00
|
|
|
Upgrade master from testing
|