|
|
@@ -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
|