Browse Source

[ci]更新 GitHub Actions 工作流,将触发分支从 0.x 修改为 main,并调整推送目标仓库为 any-tdf/demo-stdf

dufu1991 1 year ago
parent
commit
91a91bff76
1 changed files with 6 additions and 6 deletions
  1. 6 6
      .github/workflows/sync-demo.yml

+ 6 - 6
.github/workflows/sync-demo.yml

@@ -1,11 +1,11 @@
-# 当分支 0.x 有 push 事件,并且此次 push 包含了 demo 目录下的文件时触发,使用 GitHub Actions 执行
+# 当分支 main 有 push 事件,并且此次 push 包含了 demo 目录下的文件时触发,使用 GitHub Actions 执行
 
-name: SYNC DEMO 0.x
+name: SYNC DEMO
 
 on:
   push:
     branches:
-      - 0.x
+      - main
     paths:
       - 'demo/**'
 
@@ -72,12 +72,12 @@ jobs:
           git add .
           git commit -m "Github Actions auto commit: update demo from stdf."
 
-      # 将修改内容推送到 git@github.com:any-tdf/0.x-demo-stdf.git 的 main 分支
-      - name: Push to 0.x-demo-stdf
+      # 将修改内容推送到 git@github.com:any-tdf/demo-stdf.git 的 main 分支
+      - name: Push to demo-stdf
         uses: ad-m/github-push-action@master
         with:
           github_token: ${{ secrets.STDF_GITHUB_TOKEN }}
           branch: main
           force: true
           directory: stdf/demo
-          repository: any-tdf/0.x-demo-stdf
+          repository: any-tdf/demo-stdf