2023-10-31 14:06:55 +00:00
|
|
|
name: Cut branches
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
element-desktop:
|
|
|
|
description: Prepare element-desktop
|
|
|
|
required: true
|
|
|
|
type: boolean
|
|
|
|
default: true
|
|
|
|
element-web:
|
|
|
|
description: Prepare element-web
|
|
|
|
required: true
|
|
|
|
type: boolean
|
|
|
|
default: true
|
|
|
|
matrix-react-sdk:
|
|
|
|
description: Prepare matrix-react-sdk
|
|
|
|
required: true
|
|
|
|
type: boolean
|
|
|
|
default: true
|
|
|
|
matrix-js-sdk:
|
|
|
|
description: Prepare matrix-js-sdk
|
|
|
|
required: true
|
|
|
|
type: boolean
|
|
|
|
default: true
|
|
|
|
jobs:
|
|
|
|
prepare:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Element Desktop
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
if: inputs.element-desktop
|
|
|
|
with:
|
2023-12-12 10:31:44 +00:00
|
|
|
repository: element-hq/element-desktop
|
2023-10-31 14:06:55 +00:00
|
|
|
path: element-desktop
|
|
|
|
ref: staging
|
|
|
|
fetch-depth: 0
|
|
|
|
fetch-tags: true
|
|
|
|
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
|
|
- name: Checkout Element Web
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
if: inputs.element-web
|
|
|
|
with:
|
2023-12-12 10:31:44 +00:00
|
|
|
repository: element-hq/element-web
|
2023-10-31 14:06:55 +00:00
|
|
|
path: element-web
|
|
|
|
ref: staging
|
|
|
|
fetch-depth: 0
|
|
|
|
fetch-tags: true
|
|
|
|
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
|
|
- name: Checkout Matrix React SDK
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
if: inputs.matrix-react-sdk
|
|
|
|
with:
|
|
|
|
repository: matrix-org/matrix-react-sdk
|
|
|
|
path: matrix-react-sdk
|
|
|
|
ref: staging
|
|
|
|
fetch-depth: 0
|
|
|
|
fetch-tags: true
|
|
|
|
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
|
|
- name: Checkout Matrix JS SDK
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
if: inputs.matrix-js-sdk
|
|
|
|
with:
|
|
|
|
repository: matrix-org/matrix-js-sdk
|
|
|
|
path: matrix-js-sdk
|
|
|
|
ref: staging
|
|
|
|
fetch-depth: 0
|
|
|
|
fetch-tags: true
|
|
|
|
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
|
|
|
|
|
|
- name: Resolve repos
|
|
|
|
run: |
|
2023-10-31 14:12:10 +00:00
|
|
|
echo "REPOS=$(ls . | tr '\n' ' ')" >> $GITHUB_ENV
|
2023-10-31 14:06:55 +00:00
|
|
|
|
|
|
|
- name: Merge develop
|
|
|
|
run: |
|
|
|
|
git config --global user.email "releases@riot.im"
|
|
|
|
git config --global user.name "RiotRobot"
|
|
|
|
for REPO in $REPOS; do git -C "$REPO" merge origin/develop; done
|
|
|
|
|
|
|
|
- name: Push staging
|
|
|
|
run: for REPO in $REPOS; do git -C "$REPO" push origin staging; done
|