Skip to content

Commit 4569882

Browse files
esteveroboticswithjulia
authored andcommitted
build: use tokusumi/markdown-embed-code@main action to synchronize Markdown files and example code
Signed-off-by: Esteve Fernandez <esteve@apache.org>
1 parent 6af4824 commit 4569882

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/rust-minimal.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ jobs:
3636
image: ${{ matrix.docker_image }}
3737
steps:
3838
- uses: actions/checkout@v4
39+
with:
40+
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
41+
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
42+
ref: refs/heads/${{ github.head_ref }}
43+
44+
- uses: tokusumi/markdown-embed-code@main
45+
with:
46+
markdown: "docs/writing-your-first-rclrs-node.md"
47+
token: ${{ secrets.GITHUB_TOKEN }}
48+
message: "synchronizing Markdown files"
49+
silent: true
3950

4051
- name: Search packages in this repository
4152
id: list_packages

.github/workflows/rust-stable.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ jobs:
3636
image: ${{ matrix.docker_image }}
3737
steps:
3838
- uses: actions/checkout@v4
39+
with:
40+
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
41+
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
42+
ref: refs/heads/${{ github.head_ref }}
43+
44+
- uses: tokusumi/markdown-embed-code@main
45+
with:
46+
markdown: "docs/writing-your-first-rclrs-node.md"
47+
token: ${{ secrets.GITHUB_TOKEN }}
48+
message: "synchronizing Markdown files"
49+
silent: true
3950

4051
- name: Search packages in this repository
4152
id: list_packages

0 commit comments

Comments
 (0)