forked from aws4embeddedlinux/meta-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 1001 Bytes
/
ff-merge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: ff-merge
on:
workflow_dispatch:
inputs:
branchs:
description: 'branches/all to ff merge branch-next into (separate by blank only)'
default: 'master kirkstone dunfell scarthgap styhead'
required: true
jobs:
ff-merge:
runs-on: ubuntu-22.04
steps:
- name: clone, ff, push ${{ github.event.inputs.branches }}
run: |
git config --global user.name aws-iot-embedded-linux-ci
git config --global user.email [email protected]
# Split the input string on spaces
IFS=' ' read -ra BRANCHES <<< "${{ github.event.inputs.steps }}"
for branch in "${BRANCHES[@]}"; do
echo Doing ff-merge for: ${branch}
git clone ${GITHUB_REPOSITORY} -b ${branch} --depth 0
cd meta-aws
git merge --ff-only origin/${branch}-next
git push -u origin -b ${branch}
cd ..
rm -rf meta-aws
done