Skip to content
Snippets Groups Projects
Unverified Commit bb732143 authored by Tim Kaune's avatar Tim Kaune
Browse files

Add filter to git sync workflow

parent 6e606dc1
No related branches found
No related tags found
No related merge requests found
on: push name: sync-git-mirror
run-name: Push ${{ github.ref_type }} ${{ github.ref_name }} to git mirror
on:
push:
branches:
- master
tags:
- v*
jobs: jobs:
git-sync: git-sync:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: git-sync-master - name: git-sync-master
if: ${{ github.ref_type == 'branch' }}
uses: wei/git-sync@v3 uses: wei/git-sync@v3
with: with:
source_repo: "lepus2589/LoadStaticSharedTargets" source_repo: "lepus2589/LoadStaticSharedTargets"
...@@ -12,6 +20,7 @@ jobs: ...@@ -12,6 +20,7 @@ jobs:
destination_branch: "master" destination_branch: "master"
destination_ssh_private_key: ${{ secrets.DESTINATION_SSH_PRIVATE_KEY }} destination_ssh_private_key: ${{ secrets.DESTINATION_SSH_PRIVATE_KEY }}
- name: git-sync-tags - name: git-sync-tags
if: ${{ github.ref_type == 'tag' }}
uses: wei/git-sync@v3 uses: wei/git-sync@v3
with: with:
source_repo: "lepus2589/LoadStaticSharedTargets" source_repo: "lepus2589/LoadStaticSharedTargets"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment