Skip to content

Commit

Permalink
Merge pull request #25 from learner-pm/dev
Browse files Browse the repository at this point in the history
feat: 更新ci
  • Loading branch information
learner-pm authored May 14, 2024
2 parents 8547627 + 14c1948 commit 5e3f41b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ jobs:
fetch-depth: 0
- name: Install required dependencies
run: |
apt update
apt install -y sudo
sudo apt install -y git curl
sudo apt-get update
sudo apt-get install -y git curl
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo DEBIAN_FRONTEND=noninteractive apt install -y nodejs
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs
- name: Print versions
run: |
git --version
Expand All @@ -24,13 +23,15 @@ jobs:
npx commitlint --version
- name: Install commitlint
run: |
npm install conventional-changelog-conventionalcommits
npm install commitlint@latest
npm install --save-dev @commitlint/config-conventional @commitlint/cli
- name: Configure commitlint
run: |
echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commitlint.config.js
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: npx commitlint --last --verbose
run: npx commitlint --from ${GITHUB_SHA}~1 --to ${GITHUB_SHA} --verbose

- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.sha }} --verbose
4 changes: 4 additions & 0 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ export default {
text: 'Webpack',
items: [{ text: 'Webpack', link: '/program/Webpack/' }]
},
{
text: '命令行',
items: [{ text: 'Sh', link: '/program/sh/' }]
},
{
text: '数据结构',
items: [
Expand Down
2 changes: 1 addition & 1 deletion docs/program/Kuberentes/demoOne.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ kubectl exec -it <pod-name> sh
curl podIp:3000
```

其中podIp是后端容器的端口,可以通过如下命令查看
其中podIp是后端容器的IP,可以通过如下命令查看

```bash
kubectl get pod <pod-name> -o wide
Expand Down
9 changes: 9 additions & 0 deletions docs/program/sh/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# 命令行

# windows

查看文件

```bash
ls
```

0 comments on commit 5e3f41b

Please sign in to comment.