Skip to content

Commit 7052cea

Browse files
committed
refactor(workflows): 💚 Update the YAMLs for GitHub workflows
Update the out dated action version. Remove redundant/useless lines. Some other updates.
1 parent 584087a commit 7052cea

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

.github/workflows/check-link.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
name: Check link
22

33
on:
4-
# push:
5-
# pull_request:
64
workflow_dispatch:
75

86
jobs:
97
check-link:
108
name: check-link
119
runs-on: ubuntu-latest
1210
steps:
13-
- uses: actions/checkout@master
14-
with:
15-
fetch-depth: 1
11+
- uses: actions/checkout@v4.1.1
1612
# search Issues :-(
1713
- run: |
1814
docker run -i --rm \

.github/workflows/ci.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
name: CI
2+
13
on:
24
push:
35
pull_request:
46
workflow_dispatch:
57

6-
name: CI
7-
88
defaults:
99
run:
1010
shell: bash --noprofile --norc -exo pipefail {0}
@@ -14,9 +14,7 @@ jobs:
1414
name: Build
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@master
18-
with:
19-
fetch-depth: 2
17+
- uses: actions/checkout@v4.1.1
2018
- name: Build Gitbook
2119
uses: docker://yeasy/docker_practice
2220
with:
@@ -70,7 +68,6 @@ jobs:
7068
run: |
7169
export NODE_OPTIONS=--openssl-legacy-provider
7270
sudo rm -rf _book
73-
# npm i vuepress --save-dev
7471
npm i
7572
7673
git clone https://github.com/docker-practice/.vuepress .vuepress2
@@ -81,7 +78,6 @@ jobs:
8178
npx vuepress --version
8279
8380
npm run vuepress:build
84-
# echo "vuepress.docker-practice.com" > .vuepress/dist/CNAME
8581
echo "vuepress.mirror.docker-practice.com" > .vuepress/dist/CNAME
8682
8783
cp -r _images .vuepress/dist

0 commit comments

Comments
 (0)