ff-merge #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
setup_matrix: | |
runs-on: ubuntu-22.04 | |
outputs: | |
matrix: ${{ steps.dataStep.outputs.myoutput }} | |
steps: | |
- id: dataStep | |
run: | | |
echo "myoutput=$(jq -cn --argjson environments "github.event.inputs.branches" '{target: $environments}')" >> $GITHUB_OUTPUT | |
ff-merge: | |
needs: setup_matrix | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
branch: ${{ fromJson(needs.setup_matrix.outputs.matrix) }} | |
fail-fast: false | |
steps: | |
- name: clone meta-aws ${{ github.event.inputs.branch }} 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 aws-iot-embedded-linux-ci@users.noreply.github.com | |
git merge --ff-only origin/${{ matrix.branch }}-next | |
- name: push ${{ matrix.branch }} | |
working-directory: meta-aws | |
run: | | |
git push -u origin ${{ matrix.branch }} |