Skip to content

Commit

Permalink
Update mirror job (#112)
Browse files Browse the repository at this point in the history
Signed-off-by: elianalf <[email protected]>
  • Loading branch information
elianalf authored May 16, 2024
1 parent 3220dd6 commit 86f6bde
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'
- '2.14.x'

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

mirror_job_2_x:
if: github.ref == 'refs/heads/2.14.x'
name: Mirror 2.14.x branch to latest minor branches
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
dest_branch:
- '2.x'
steps:
- name: Mirror action step
id: mirror
uses: eProsima/eProsima-CI/external/mirror-branch-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
source: '2.14.x'
dest: ${{ matrix.dest_branch }}

0 comments on commit 86f6bde

Please sign in to comment.