Skip to content

Commit

Permalink
Update mirror job (#83)
Browse files Browse the repository at this point in the history
Signed-off-by: eduponz <eduardoponz@eprosima.com>
  • Loading branch information
EduPonz authored May 16, 2024
1 parent 3d03002 commit c3c2e54
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 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'
- '1.2.x'

jobs:
mirror_job_master:
if: github.ref == 'refs/heads/master'
mirror_job:
runs-on: ubuntu-latest
name: Mirror master branch to API & ABI compatible minor version branches
strategy:
Expand All @@ -24,21 +23,3 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
source: 'master'
dest: ${{ matrix.dest_branch }}

mirror_job_1_x:
if: github.ref == 'refs/heads/1.2.x'
runs-on: ubuntu-latest
name: Mirror 1.2.x branch to compatible 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.x'
dest: ${{ matrix.dest_branch }}

0 comments on commit c3c2e54

Please sign in to comment.