lampajr commented on code in PR #2970:
URL:
https://github.com/apache/incubator-kie-optaplanner/pull/2970#discussion_r1321645211
##########
.github/workflows/sync-mirror.yaml:
##########
@@ -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
Review Comment:
If the apache repository name will match the kiegroup one, I think we could
simplify this without having to hardcode the repo name - this way all
repositories will have the same workflow
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]