This commit is contained in:
xiongxiao
2026-01-12 14:01:11 +08:00
parent d32fce99e2
commit 0751c8029a
2 changed files with 15 additions and 19 deletions

View File

@@ -21,17 +21,13 @@ $:
TO_URL: git.xiongxiao.me
main:
web_trigger_sync_to_gitea:
- <<: *common_env
stages:
- name: '测试变量'
script: |
echo "TO_REPO: ${TO_REPO}"
echo "TO_URL: ${TO_URL}"
echo '从gitea同步'
- env: !reference [.common_env]
- <<: *common_sync_to_gitea
web_trigger_sync_from_gitea:
- <<: *common_env
stages:
- name: '测试变量'
- name: "测试变量"
script: |
echo "TO_REPO: ${TO_REPO}"
echo "TO_URL: ${TO_URL}"
@@ -39,7 +35,7 @@ main:
api_trigger_sync_to_gitea:
- <<: *common_env
stages:
- name: '测试变量'
- name: "测试变量"
script: |
echo "TO_REPO: ${TO_REPO}"
echo "TO_URL: ${TO_URL}"
@@ -47,7 +43,7 @@ main:
api_trigger_sync_from_gitea:
- <<: *common_env
stages:
- name: '测试变量'
- name: "测试变量"
script: |
echo "TO_REPO: ${TO_REPO}"
echo "TO_URL: ${TO_URL}"

View File

@@ -39,12 +39,12 @@
- name: '提交到原本的origin'
script: git push origin main
main:
web_trigger_sync_to_gitea:
- <<: *common_sync_to_gitea
web_trigger_sync_from_gitea:
- <<: *common_sync_from_gitea
api_trigger_sync_to_gitea:
- <<: *common_sync_to_gitea
api_trigger_sync_from_gitea:
- <<: *common_sync_from_gitea
# main:
# web_trigger_sync_to_gitea:
# - <<: *common_sync_to_gitea
# web_trigger_sync_from_gitea:
# - <<: *common_sync_from_gitea
# api_trigger_sync_to_gitea:
# - <<: *common_sync_to_gitea
# api_trigger_sync_from_gitea:
# - <<: *common_sync_from_gitea