Skip to content

Automerge

Automerge #1406

Workflow file for this run

# This workflow executes the automerge python script to automatically merge
# changes from the `main` branch of upstream LLVM into the `arm-software`
# branch of the arm/arm-toolchain repository.
name: Automerge
on:
workflow_run:
workflows: [Sync from Upstream LLVM]
types:
- completed
workflow_dispatch:
jobs:
Run-Automerge:
runs-on: ubuntu-latest
strategy:
matrix:
branches:
- from_branch: main
to_branch: arm-software
- from_branch: release/20.x
to_branch: release/arm-software/20.x
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ matrix.branches.to_branch }}
- name: Configure Git Identity
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Fetch Branches
run: |
git remote set-branches --add origin ${{ matrix.branches.from_branch }}
git fetch origin ${{ matrix.branches.from_branch }}:${{ matrix.branches.from_branch }}
git fetch origin --update-head-ok --unshallow ${{ matrix.branches.to_branch }}:${{ matrix.branches.to_branch }}
- name: Run automerge
run: python3 arm-software/ci/automerge.py --project-name ${{ github.repository }} --from-branch ${{ matrix.branches.from_branch }} --to-branch ${{ matrix.branches.to_branch }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}