Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/mirror-enterprise.yml
Original file line number Diff line number Diff line change
@@ -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 --no-rebase https://github.com/Xilinx/MLDebugger.git main
git -c "$hdr" push origin main

3 changes: 3 additions & 0 deletions mldebug.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2024-2025 Advanced Micro Devices, Inc. All rights reserved.

# TEST CHANGES
# TEST CHANGES 2
# TEST CHANGES 3
"""
Direct Launcher script
"""
Expand Down
Loading