forked from aws4embeddedlinux/meta-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.27 KB
/
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
32
33
name: ff-merge
on:
workflow_dispatch:
inputs:
branches:
description: 'branches/all to ff merge branch-next into (separate by blank only)'
default: 'master, dunfell, gatesgarth, hardknott, honister, kirkstone, zeus, langdale, mickledore, nanbield, scarthgap, styhead'
required: true
jobs:
ff-merge:
runs-on: ubuntu-22.04
strategy:
matrix:
branch: ${{ split(github.event.inputs.branches), ',') }}
fail-fast: false
steps:
- name: clone meta-aws ${{ github.event.inputs.branches }} branch
uses: actions/checkout@v3
with:
ref: ${{ matrix.branch }}
path: meta-aws
fetch-depth: 0
token: ${{ secrets.BOT_CREDENTIAL }}
- name: merge ${{ matrix.branch }}-next into ${{ matrix.branch }}
working-directory: meta-aws
run: |
git config --global user.name aws-iot-embedded-linux-ci
git config --global user.email [email protected]
git merge --ff-only origin/${{ matrix.branch }}-next
- name: push ${{ matrix.branch }}
working-directory: meta-aws
run: |
git push -u origin ${{ matrix.branch }}