Skip to content

Commit

Permalink
Adding mirror sync automated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lampajr committed Sep 11, 2023
1 parent b965480 commit 7c544ac
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/sync-mirror.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Automatic Mirror Synchronization

on: [push]

jobs:
sync-mirror:
if: github.repository_owner == 'apache'
name: Sync the Kiegroup mirror
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: enteee/git-sync-mirror:latest
options: >
--rm
--env DEBUG=true
--env SRC_REPO=${{ github.server_url }}/${{ github.repository }}.git
--env DST_REPO=${{ github.server_url }}/kiegroup/optaplanner.git
--env SRC_REPO_TOKEN=${{ secrets.GITHUB_TOKEN }}
--env DST_REPO_TOKEN=${{ secrets.KIE_PAT }}
--env ONCE=true
run: |
./bin/git-sync-mirror.sh

0 comments on commit 7c544ac

Please sign in to comment.