Skip to content

Commit a7ed7d2

Browse files
authored
Merge pull request #3109 from emqx/20250806-update-cli-manual
update CLI manual
2 parents c6e1fe8 + 81a0309 commit a7ed7d2

File tree

8 files changed

+1891
-735
lines changed

8 files changed

+1891
-735
lines changed

.github/workflows/check_markdown.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: check out code
10-
uses: actions/checkout@main
10+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1111

1212
- name: check markdown
1313
run: |
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: check out code
21-
uses: actions/checkout@main
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222

2323
- name: check directory config
2424
run: |

.github/workflows/deploy_docs.yaml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
versions: ${{ steps.set_environment.outputs.versions }}
1414
docs_types: ${{ steps.set_environment.outputs.docs_types }}
1515
steps:
16-
- uses: actions/checkout@main
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717
with:
1818
fetch-depth: 0
1919

@@ -52,7 +52,7 @@ jobs:
5252
runs-on: ubuntu-latest
5353
steps:
5454
- name: clone docs
55-
uses: actions/checkout@main
55+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5656
with:
5757
fetch-depth: 0
5858
path: docs-files
@@ -63,26 +63,34 @@ jobs:
6363
echo "DOCS_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
6464
echo "VERSION=${{ matrix.version }}" >> $GITHUB_ENV
6565
66+
- name: Generate GitHub App token
67+
id: app-token
68+
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
69+
with:
70+
app-id: ${{ vars.AUTH_APP_ID }}
71+
private-key: ${{ secrets.AUTH_APP_PRIVATE_KEY }}
72+
owner: ${{ github.repository_owner }}
73+
6674
- name: clone frontend
67-
uses: actions/checkout@main
75+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6876
with:
6977
repository: 'emqx/docs-emqx-com-frontend'
7078
ref: next
71-
token: ${{ secrets.CI_GIT_TOKEN }}
79+
token: ${{ steps.app-token.outputs.token }}
7280
path: frontend
7381

7482
- name: use python
75-
uses: actions/setup-python@v4
83+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
7684
with:
7785
python-version: 3.8
7886

7987
- name: use node.js
80-
uses: actions/setup-node@v3
88+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
8189
with:
8290
node-version-file: 'frontend/.nvmrc'
8391

8492
- name: use pnpm
85-
uses: pnpm/action-setup@v2
93+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
8694
with:
8795
version: 8
8896

@@ -183,7 +191,7 @@ jobs:
183191
184192
- name: set aws credentials
185193
if: github.event_name == 'push'
186-
uses: aws-actions/configure-aws-credentials@v4
194+
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1
187195
with:
188196
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
189197
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

.github/workflows/update-api-and-cfg-manual.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,25 @@ jobs:
4444
pull-requests: write
4545

4646
steps:
47-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
47+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4848

49-
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
49+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
5050
with:
5151
pattern: "emqx*-schema-dump"
5252
repository: ${{ env.REPOSITORY }}
5353
run-id: ${{ env.RUN_ID }}
5454
github-token: ${{ secrets.PAT_RO_WORKFLOWS }}
5555
merge-multiple: true
5656

57-
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
57+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
5858
if: github.event.inputs.docker_pull == false
5959
with:
6060
name: "emqx-docker"
6161
repository: ${{ env.REPOSITORY }}
6262
run-id: ${{ env.RUN_ID }}
6363
github-token: ${{ secrets.PAT_RO_WORKFLOWS }}
6464

65-
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
65+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
6666
if: github.event.inputs.docker_pull == false
6767
with:
6868
name: "emqx-enterprise-docker"
@@ -136,7 +136,7 @@ jobs:
136136
done
137137
gh pr create --title "update api and cfg manual ${VERSION}" --body '' --base ${BASE_BRANCH} --head ${NEW_BRANCH} --label update-api-cfg --repo ${{ github.repository }}
138138
139-
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
139+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
140140
with:
141141
name: "swagger"
142142
path: |

.github/workflows/update-changelog.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ jobs:
3737
pull-requests: write
3838

3939
steps:
40-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
40+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4141

4242
- name: Generate GitHub App token
4343
id: app-token
44-
uses: actions/create-github-app-token@v1
44+
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
4545
with:
4646
app-id: ${{ vars.AUTH_APP_ID }}
4747
private-key: ${{ secrets.AUTH_APP_PRIVATE_KEY }}
4848
owner: ${{ github.repository_owner }}
4949

50-
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
50+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
5151
with:
5252
name: changes
5353
repository: ${{ env.REPOSITORY }}

0 commit comments

Comments
 (0)