Skip to content

Commit

Permalink
Update mirror job (#343)
Browse files Browse the repository at this point in the history
Signed-off-by: eduponz <[email protected]>
  • Loading branch information
EduPonz authored May 16, 2024
1 parent ef21536 commit 975796f
Showing 1 changed file with 3 additions and 38 deletions.
41 changes: 3 additions & 38 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# .github/workflows/mirror.yml
name: Mirror
on:
push:
branches:
- 'master'
- '3.3.x'
- '2.5.x'

jobs:
mirror_job_master:
if: github.ref == 'refs/heads/master'
mirror_job:
runs-on: ubuntu-latest
name: Mirror master branch to compatible minor version branches
strategy:
Expand All @@ -24,37 +23,3 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
source: 'master'
dest: ${{ matrix.dest_branch }}
mirror_job_3_3_x:
if: github.ref == 'refs/heads/3.3.x'
runs-on: ubuntu-latest
name: Mirror 3.3.x branch to compatible minor version branches
strategy:
fail-fast: false
matrix:
dest_branch:
- '3.x'
steps:
- name: Mirror action step
id: mirror
uses: eProsima/eProsima-CI/external/mirror-branch-action@v0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
source: '3.3.x'
dest: ${{ matrix.dest_branch }}
mirror_job_2_5_x:
if: github.ref == 'refs/heads/2.5.x'
runs-on: ubuntu-latest
name: Mirror 2.5.x branch to 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.5.x'
dest: ${{ matrix.dest_branch }}

0 comments on commit 975796f

Please sign in to comment.