diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 8490d894475..8cb89df46ef 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -1,17 +1,22 @@ # .github/workflows/mirror.yml +name: Mirror on: push: branches: - 'master' + - '2.14.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.14.x' + - '3.0.x' + - '3.x' steps: - name: Mirror action step id: mirror @@ -20,3 +25,21 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} source: 'master' dest: ${{ matrix.dest_branch }} + + mirror_job_2_x: + if: github.ref == 'refs/heads/2.14.x' + runs-on: ubuntu-latest + name: Mirror master branch to API & ABI compatible minor version branches + strategy: + fail-fast: false + matrix: + dest_branch: + - '2.x' + steps: + - name: Mirror action step + id: mirror + uses: eProsima/eProsima-CI/external/mirror-branch-action@v0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + source: '2.14.x' + dest: ${{ matrix.dest_branch }}