diff --git a/.github/workflows/mirroring.yml b/.github/workflows/mirroring.yml new file mode 100644 index 0000000..d6512a5 --- /dev/null +++ b/.github/workflows/mirroring.yml @@ -0,0 +1,21 @@ +name: Mirroring + +on: + push: + branches: + - master + - dev + tags: + - '*' + +jobs: + git-sync: + runs-on: ubuntu-latest + steps: + - name: git-sync + uses: wei/git-sync@v3 + with: + source_repo: ${GITHUB_REPOSITORY} + source_branch: ${{github.ref_name}} + destination_repo: 'https://${{ secrets.DESTINATION_USER }}:${{ secrets.DESTINATION_TOKEN }}@${{ secrets.DESTINATION_SERVER }}/ergo/${GITHUB_REPOSITORY}.git' + destination_branch: ${{github.ref_name}} diff --git a/.github/workflows/main.yml b/.github/workflows/release.yml similarity index 98% rename from .github/workflows/main.yml rename to .github/workflows/release.yml index 8b86815..f4cdce0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: RELEASE +name: Release on: release: