Sync KiCad Project Forks #34121
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2021-2024 TiaC Systems | |
# SPDX-License-Identifier: Unlicense | |
name: Sync KiCad Project Forks | |
on: | |
schedule: # At every minute past hour 0, 4, 8, 12, 16, and 20. | |
- cron: '* 0,4,8,12,16,20 * * *' | |
workflow_dispatch: # And manually on button click. | |
jobs: | |
git-sync: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
repo: | |
- kicad-symbols | |
- kicad-footprints | |
- kicad-packages3D | |
- kicad-packages3D-source | |
- kicad-library-utils | |
- kicad-templates | |
branch: | |
- dev | |
- master | |
- v8 | |
- v7 | |
- v6 | |
- v5 | |
- "refs/tags/*" | |
steps: | |
- name: git-sync-kicad-symbols | |
uses: tiacsys/git-sync@v3 | |
with: | |
source_repo: "https://gitlab.com/kicad/libraries/${{ matrix.repo }}.git" | |
source_branch: "${{ matrix.branch }}" | |
destination_repo: "git@github.com:tiacsys/${{ matrix.repo }}.git" | |
destination_branch: "${{ matrix.branch }}" | |
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY_KICAD_SYMBOLS }} | |
if: ${{ matrix.repo == 'kicad-symbols' && matrix.branch != 'dev' }} # no dev | |
- name: git-sync-kicad-footprints | |
uses: tiacsys/git-sync@v3 | |
with: | |
source_repo: "https://gitlab.com/kicad/libraries/${{ matrix.repo }}.git" | |
source_branch: "${{ matrix.branch }}" | |
destination_repo: "git@github.com:tiacsys/${{ matrix.repo }}.git" | |
destination_branch: "${{ matrix.branch }}" | |
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY_KICAD_FOOTPRINTS }} | |
if: ${{ matrix.repo == 'kicad-footprints' }} | |
- name: git-sync-kicad-packages3D | |
uses: tiacsys/git-sync@v3 | |
with: | |
source_repo: "https://gitlab.com/kicad/libraries/${{ matrix.repo }}.git" | |
source_branch: "${{ matrix.branch }}" | |
destination_repo: "git@github.com:tiacsys/${{ matrix.repo }}.git" | |
destination_branch: "${{ matrix.branch }}" | |
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY_KICAD_PACKAGES3D }} | |
if: ${{ matrix.repo == 'kicad-packages3D' && matrix.branch != 'v7' | |
&& matrix.branch != 'v8' }} # no since v7 | |
- name: git-sync-kicad-packages3D-source | |
uses: tiacsys/git-sync@v3 | |
with: | |
source_repo: "https://gitlab.com/kicad/libraries/${{ matrix.repo }}.git" | |
source_branch: "${{ matrix.branch }}" | |
destination_repo: "git@github.com:tiacsys/${{ matrix.repo }}.git" | |
destination_branch: "${{ matrix.branch }}" | |
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY_KICAD_PACKAGES3D_SOURCE }} | |
if: ${{ matrix.repo == 'kicad-packages3D-source' && matrix.branch != 'v6' | |
&& matrix.branch != 'v7' | |
&& matrix.branch != 'v8' | |
&& matrix.branch != 'dev' }} # no since v6 / no dev | |
- name: git-sync-kicad-library-utils | |
uses: tiacsys/git-sync@v3 | |
with: | |
source_repo: "https://gitlab.com/kicad/libraries/${{ matrix.repo }}.git" | |
source_branch: "${{ matrix.branch }}" | |
destination_repo: "git@github.com:tiacsys/${{ matrix.repo }}.git" | |
destination_branch: "${{ matrix.branch }}" | |
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY_KICAD_LIBRARY_UTILS }} | |
if: ${{ matrix.repo == 'kicad-library-utils' && matrix.branch != 'v7' | |
&& matrix.branch != 'v8' | |
&& matrix.branch != 'dev' }} # no since v7 / no dev | |
- name: git-sync-kicad-templates | |
uses: tiacsys/git-sync@v3 | |
with: | |
source_repo: "https://gitlab.com/kicad/libraries/${{ matrix.repo }}.git" | |
source_branch: "${{ matrix.branch }}" | |
destination_repo: "git@github.com:tiacsys/${{ matrix.repo }}.git" | |
destination_branch: "${{ matrix.branch }}" | |
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY_KICAD_TEMPLATES }} | |
if: ${{ matrix.repo == 'kicad-templates' && matrix.branch != 'v6' }} # no v6 |