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