Browse Source

[ci]更新工作流配置,移除不必要的分支和路径触发设置,简化同步任务的执行流程。

dufu1991 1 year ago
parent
commit
03e40f8cf8
1 changed files with 1 additions and 18 deletions
  1. 1 18
      .github/workflows/sync-demo-0.x.yml

+ 1 - 18
.github/workflows/sync-demo-0.x.yml

@@ -4,11 +4,7 @@ name: SYNC DEMO 0.x
 
 on:
     workflow_dispatch:
-    push:
-        branches:
-            - 0.x
-        paths:
-            - 'demo/**'
+
 jobs:
     sync:
         runs-on: ubuntu-latest
@@ -16,19 +12,6 @@ jobs:
             - name: Checkout
               uses: actions/checkout@v4
 
-            # clone 仓库 github.com/any-tdf/stdf
-            - name: Clone stdf
-              uses: actions/checkout@v4
-              with:
-                  repository: any-tdf/stdf
-                  token: ${{ secrets.STDF_GITHUB_TOKEN }}
-                  path: stdf
-
-            # 切换到 0.x 分支
-            - name: Checkout 0.x
-              run: |
-                  git checkout 0.x
-
             # 读取 packages/stdf/package.json 中的 version 字段,作为 stdf 的最新版本
             - name: Get version
               id: version