Skip to content

Commit

Permalink
Extend mirror workflow to also mirror in major branches (#208)
Browse files Browse the repository at this point in the history
* Refs #20893: Extend mirror workflow to also mirror in major branches

Signed-off-by: eduponz <eduardoponz@eprosima.com>

* Refs #20893: Apply Miguel's suggestion

Signed-off-by: eduponz <eduardoponz@eprosima.com>

---------

Signed-off-by: eduponz <eduardoponz@eprosima.com>
  • Loading branch information
EduPonz authored May 14, 2024
1 parent 75b2be7 commit f889eee
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ on:
push:
branches:
- 'master'
- '1.1.x'
jobs:
mirror_job:
mirror_job_master:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
name: Mirror master branch to API & ABI compatible minor version branches
strategy:
fail-fast: false
matrix:
dest_branch:
- '2.2.x'
- '2.x'
steps:
- name: Mirror action step
id: mirror
Expand All @@ -20,3 +23,20 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
source: 'master'
dest: ${{ matrix.dest_branch }}
mirror_job_1_x:
if: github.ref == 'refs/heads/1.1.x'
runs-on: ubuntu-latest
name: Mirror 1.1.x branch to API & ABI compatible minor version branches
strategy:
fail-fast: false
matrix:
dest_branch:
- '1.x'
steps:
- name: Mirror action step
id: mirror
uses: eProsima/eProsima-CI/external/mirror-branch-action@v0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
source: '1.1.x'
dest: ${{ matrix.dest_branch }}

0 comments on commit f889eee

Please sign in to comment.