From 02da593f7c3558dd4469534dcfabafe20ad87dab Mon Sep 17 00:00:00 2001 From: huangjj27 Date: Sun, 28 Apr 2024 15:14:21 +0800 Subject: [PATCH 1/2] chore(ci): bump up actions --- .github/workflows/zh-CN.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/zh-CN.yml b/.github/workflows/zh-CN.yml index 50bb09ce..4f4b4061 100644 --- a/.github/workflows/zh-CN.yml +++ b/.github/workflows/zh-CN.yml @@ -13,7 +13,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install mdbook uses: actions-rs/install@v0.1 with: @@ -31,7 +31,7 @@ jobs: - name: Build mdbook run: mdbook build && pwd - name: Cache artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: book path: ./book @@ -42,11 +42,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Get artifact - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v4 with: name: book - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} publish_dir: ./book/html From 728a81b27e012a6e9b521236a29cd6e899f3da61 Mon Sep 17 00:00:00 2001 From: huangjj27 Date: Sun, 28 Apr 2024 15:41:00 +0800 Subject: [PATCH 2/2] ci(trigger): fix syntax for triggers --- .github/workflows/zh-CN.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/zh-CN.yml b/.github/workflows/zh-CN.yml index 4f4b4061..5f84d5e0 100644 --- a/.github/workflows/zh-CN.yml +++ b/.github/workflows/zh-CN.yml @@ -2,9 +2,11 @@ name: zh-CN Translation on: push: - branches: zh-CN + branches: + - zh-CN pull_request: - branches: zh-CN + branches: + - zh-CN env: CARGO_TERM_COLOR: always