From 026d1829a38a2074d3f3b3c7ed9efcbd08680b2f Mon Sep 17 00:00:00 2001 From: snigupta Date: Wed, 7 Oct 2026 14:06:19 -0600 Subject: [PATCH 1/2] Add a workflow that merges GitHub main into enterprise MLDebug. Signed-off-by: snigupta Co-authored-by: Cursor --- .github/workflows/mirror-enterprise.yml | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/mirror-enterprise.yml diff --git a/.github/workflows/mirror-enterprise.yml b/.github/workflows/mirror-enterprise.yml new file mode 100644 index 0000000..5252b76 --- /dev/null +++ b/.github/workflows/mirror-enterprise.yml @@ -0,0 +1,35 @@ +name: Mirror main to MLDebug + +on: + push: + branches: [ main ] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: mirror-mldebug-main + cancel-in-progress: false + +jobs: + mirror: + runs-on: [ fork-mirror ] + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + persist-credentials: false + + - name: Push main to enterprise + env: + ENTERPRISE_TOKEN: ${{ secrets.MLDEBUG_ENTERPRISE_TOKEN }} + run: | + auth=$(printf 'x-access-token:%s' "$ENTERPRISE_TOKEN" | base64 -w0) + hdr="http.extraHeader=AUTHORIZATION: basic ${auth}" + + git -c "$hdr" clone https://gitenterprise.xilinx.com/snigupta/MLDebug.git "$RUNNER_TEMP/MLDebug" + cd "$RUNNER_TEMP/MLDebug" + git pull https://github.com/Xilinx/MLDebugger.git main + git -c "$hdr" push origin main + From ce94b7e7a701a87766e612d6d9b645415070283e Mon Sep 17 00:00:00 2001 From: snigupta Date: Wed, 7 Oct 2026 14:08:58 -0600 Subject: [PATCH 2/2] Merge GitHub main explicitly when updating enterprise MLDebug. Signed-off-by: snigupta Co-authored-by: Cursor --- .github/workflows/mirror-enterprise.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mirror-enterprise.yml b/.github/workflows/mirror-enterprise.yml index 5252b76..95f6c1d 100644 --- a/.github/workflows/mirror-enterprise.yml +++ b/.github/workflows/mirror-enterprise.yml @@ -30,6 +30,6 @@ jobs: git -c "$hdr" clone https://gitenterprise.xilinx.com/snigupta/MLDebug.git "$RUNNER_TEMP/MLDebug" cd "$RUNNER_TEMP/MLDebug" - git pull https://github.com/Xilinx/MLDebugger.git main + git pull --no-rebase https://github.com/Xilinx/MLDebugger.git main git -c "$hdr" push origin main