Skip to content

Commit f889eee

Browse files
authored
Extend mirror workflow to also mirror in major branches (#208)
* Refs #20893: Extend mirror workflow to also mirror in major branches Signed-off-by: eduponz <[email protected]> * Refs #20893: Apply Miguel's suggestion Signed-off-by: eduponz <[email protected]> --------- Signed-off-by: eduponz <[email protected]>
1 parent 75b2be7 commit f889eee

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/mirror.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@ on:
33
push:
44
branches:
55
- 'master'
6+
- '1.1.x'
67
jobs:
7-
mirror_job:
8+
mirror_job_master:
9+
if: github.ref == 'refs/heads/master'
810
runs-on: ubuntu-latest
911
name: Mirror master branch to API & ABI compatible minor version branches
1012
strategy:
1113
fail-fast: false
1214
matrix:
1315
dest_branch:
1416
- '2.2.x'
17+
- '2.x'
1518
steps:
1619
- name: Mirror action step
1720
id: mirror
@@ -20,3 +23,20 @@ jobs:
2023
github-token: ${{ secrets.GITHUB_TOKEN }}
2124
source: 'master'
2225
dest: ${{ matrix.dest_branch }}
26+
mirror_job_1_x:
27+
if: github.ref == 'refs/heads/1.1.x'
28+
runs-on: ubuntu-latest
29+
name: Mirror 1.1.x branch to API & ABI compatible minor version branches
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
dest_branch:
34+
- '1.x'
35+
steps:
36+
- name: Mirror action step
37+
id: mirror
38+
uses: eProsima/eProsima-CI/external/mirror-branch-action@v0
39+
with:
40+
github-token: ${{ secrets.GITHUB_TOKEN }}
41+
source: '1.1.x'
42+
dest: ${{ matrix.dest_branch }}

0 commit comments

Comments
 (0)