File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments