Skip to content

Commit cc90090

Browse files
authored
Update trigger-sync.yml
1 parent 7cd60b8 commit cc90090

File tree

1 file changed

+2
-32
lines changed

1 file changed

+2
-32
lines changed

.github/workflows/trigger-sync.yml

+2-32
Original file line numberDiff line numberDiff line change
@@ -18,43 +18,13 @@ jobs:
1818
ref: main
1919
path: ./.
2020

21-
- name: Checkout main repository
22-
uses: actions/checkout@v3
23-
with:
24-
repository: ${{ github.repository_owner }}/eunomia-bpf
25-
ref: master
26-
path: eunomia-bpf
27-
28-
- name: Checkout this repository
29-
uses: actions/checkout@v3
30-
with:
31-
repository: ${{ github.repository_owner }}/bpf-developer-tutorial
32-
ref: ${{ github.ref }}
33-
path: tutorial
34-
35-
- name: Change suffix
36-
run: |
37-
find ./tutorial -type f -name "*.md" ! -name "*_en*" -exec bash -c 'mv "$1" "${1%.md}.zh.md"' bash {} \;
38-
find ./tutorial -type f -name "*_en*.md" -exec bash -c 'mv "$1" "${1//_en/}"' bash {} \;
39-
40-
- name: Merge changes
41-
run: |
42-
cp -rf eunomia-bpf/documents/src docs
43-
mkdir docs/tutorials
44-
cp -rf tutorial/src/* docs/tutorials
45-
mv tutorial/src/SUMMARY.zh.md docs/tutorials/index.zh.md
46-
mv tutorial/src/SUMMARY.md docs/tutorials/index.md
47-
4821
- uses: actions/setup-python@v4
4922
with:
5023
python-version: 3.x
5124

52-
- name: Install dependents
25+
- name: Install all
5326
run: |
54-
pip install mkdocs-material=="9.*" mkdocs-static-i18n=="0.53"
55-
pip install "mkdocs-material[imaging]"
56-
pip install mkdocs-git-revision-date-localized-plugin
57-
pip install mkdocs-git-authors-plugin
27+
make install
5828
5929
- name: Test page build
6030
run: |

0 commit comments

Comments
 (0)