diff --git a/.cnb.yml b/.cnb.yml index 0abef95..f9f2353 100644 --- a/.cnb.yml +++ b/.cnb.yml @@ -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}" diff --git a/.cnb/template.yml b/.cnb/template.yml index 97af3ea..d8444d9 100644 --- a/.cnb/template.yml +++ b/.cnb/template.yml @@ -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