Skip to content

Commit fcae05f

Browse files
committed
Add GitHub workflow to auto merge main to release/1.2.x
1 parent e8db7b7 commit fcae05f

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: Sync Release Branches
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
sync:
13+
name: Sync ${{ matrix.branch }}
14+
runs-on: ubuntu-latest
15+
concurrency:
16+
group: sync-branch-${{ matrix.branch }}
17+
cancel-in-progress: false
18+
permissions:
19+
contents: write
20+
strategy:
21+
# Keep syncing other branches even if one fails
22+
fail-fast: false
23+
matrix:
24+
branch:
25+
# Add or remove release branches here to control which ones track main
26+
- release/1.2.x
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v6
30+
with:
31+
fetch-depth: 0
32+
token: ${{ secrets.RELEASE_SYNC_TOKEN }}
33+
34+
- name: Fast-forward ${{ matrix.branch }} to main
35+
run: |
36+
git checkout ${{ matrix.branch }}
37+
git merge --ff-only origin/main
38+
git push origin ${{ matrix.branch }}

0 commit comments

Comments
 (0)