From 584087ad46b4fb6b298fa5cae02b1c983d84fcbc Mon Sep 17 00:00:00 2001 From: CybCom <91059829+CybCom@users.noreply.github.com> Date: Fri, 22 Dec 2023 18:27:38 +0800 Subject: [PATCH 1/2] ci(workflows): :green_heart: Try to confirm and fix CI error:0308010C There might be a conflict between the new version node.js and this project's dependencies, according to CI Error message "error:0308010C:digital envelope routines::unsupported". Try to confirm and fix it by specifying the old styled openssl. --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 13c7206ad..ad89eecaf 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -68,6 +68,7 @@ jobs: PCIT_USERNAME: khs1994 - name: vuepress run: | + export NODE_OPTIONS=--openssl-legacy-provider sudo rm -rf _book # npm i vuepress --save-dev npm i From 7052cea8a3d5430d37fda5f2643d2af8f4f9a66e Mon Sep 17 00:00:00 2001 From: CybCom <91059829+CybCom@users.noreply.github.com> Date: Sat, 23 Dec 2023 01:01:32 +0800 Subject: [PATCH 2/2] refactor(workflows): :green_heart: Update the YAMLs for GitHub workflows Update the out dated action version. Remove redundant/useless lines. Some other updates. --- .github/workflows/check-link.yml | 6 +----- .github/workflows/ci.yaml | 10 +++------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/check-link.yml b/.github/workflows/check-link.yml index e6546e8db..67c5a7f1e 100644 --- a/.github/workflows/check-link.yml +++ b/.github/workflows/check-link.yml @@ -1,8 +1,6 @@ name: Check link on: - # push: - # pull_request: workflow_dispatch: jobs: @@ -10,9 +8,7 @@ jobs: name: check-link runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - with: - fetch-depth: 1 + - uses: actions/checkout@v4.1.1 # search Issues :-( - run: | docker run -i --rm \ diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ad89eecaf..f94deaa98 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,10 +1,10 @@ +name: CI + on: push: pull_request: workflow_dispatch: -name: CI - defaults: run: shell: bash --noprofile --norc -exo pipefail {0} @@ -14,9 +14,7 @@ jobs: name: Build runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - with: - fetch-depth: 2 + - uses: actions/checkout@v4.1.1 - name: Build Gitbook uses: docker://yeasy/docker_practice with: @@ -70,7 +68,6 @@ jobs: run: | export NODE_OPTIONS=--openssl-legacy-provider sudo rm -rf _book - # npm i vuepress --save-dev npm i git clone https://github.com/docker-practice/.vuepress .vuepress2 @@ -81,7 +78,6 @@ jobs: npx vuepress --version npm run vuepress:build - # echo "vuepress.docker-practice.com" > .vuepress/dist/CNAME echo "vuepress.mirror.docker-practice.com" > .vuepress/dist/CNAME cp -r _images .vuepress/dist