-
Notifications
You must be signed in to change notification settings - Fork 951
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding mirror sync automated workflow
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
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
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 mirror sync process using git-sync-mirror | ||
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 |