Skip to content

Refs #20893: Add mirror workflow #2

Refs #20893: Add mirror workflow

Refs #20893: Add mirror workflow #2

Workflow file for this run

# .github/workflows/mirror.yml

Check failure on line 1 in .github/workflows/mirror.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/mirror.yml

Invalid workflow file

You have an error in your yaml syntax on line 1
on:
push:
branches:
- 'master'
- '1.2.x'
jobs:
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.0.x'
- '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: '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 }}