feat: Add GitHub Actions workflow for syncing to enterprise repository and update documentation for remote configuration

This commit is contained in:
wood911010 committed 2026-03-13 19:20:20 +08:00
1 parent aa3ae38968
commit ed00a63434
2 files changed
+35 -7

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
name: Sync to Enterprise
on:
push:
branches:
- main
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Add enterprise remote
run: |
git remote add enterprise https://x-access-token:${{ secrets.ENTERPRISE_REPO_TOKEN }}@github.com/cedar-v/license-manager-enterprise.git
- name: Push to enterprise license-manager branch
run: |
git push enterprise main:license-manager --force