chore: add remote connection test to sync_to_enterprise.yml for improved debugging

This commit is contained in:
wood911010 committed 2026-03-13 20:00:56 +08:00
1 parent 4dab5563c5
commit 13e33777bd
1 file changed
+8
+8
View File
@@ -23,8 +23,16 @@ jobs:
- name: Add enterprise remote
run: |
echo "Token loaded: ${{ secrets.ENTERPRISE_REPO_TOKEN != '' }}"
TOKEN="${{ secrets.ENTERPRISE_REPO_TOKEN }}"
echo "Token first 4 chars: ${TOKEN:0:4}"
git remote add enterprise https://x-access-token:${{ secrets.ENTERPRISE_REPO_TOKEN }}@github.com/cedar-v/license-manager-enterprise.git
- name: Test remote connection
run: |
echo "=== Testing remote connection ==="
git ls-remote enterprise
echo "=== Test complete ==="
- name: Push to enterprise license-manager branch
run: |
git push enterprise main:license-manager --force