You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2023/01/29 09:43:58 UTC

[iotdb] 03/03: fix bug and test deploy

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch test_doc_pic
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 134346e125f331ba17b09363ec495e88a5c49136
Author: HTHou <hh...@outlook.com>
AuthorDate: Sun Jan 29 17:42:49 2023 +0800

    fix bug and test deploy
---
 .github/workflows/site-build.yml | 2 +-
 site/replace-picture-urls.sh     | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/site-build.yml b/.github/workflows/site-build.yml
index c7f03d9eb6..163fbb4057 100644
--- a/.github/workflows/site-build.yml
+++ b/.github/workflows/site-build.yml
@@ -41,7 +41,7 @@ jobs:
 
   deploy:
     runs-on: ubuntu-latest
-    if: github.event_name == 'workflow_dispatch' && github.ref_name == 'master' || github.event_name == 'push'
+    if: github.event_name == 'workflow_dispatch' && (github.ref_name == 'master' || github.ref_name == 'test_doc_pic') || github.event_name == 'push'
 
     steps:
       - uses: actions/checkout@v3
diff --git a/site/replace-picture-urls.sh b/site/replace-picture-urls.sh
index 8394f11464..8763b624f4 100755
--- a/site/replace-picture-urls.sh
+++ b/site/replace-picture-urls.sh
@@ -18,5 +18,7 @@
 # under the License.
 #
 
-sed -i "" "s/github.com\/apache\/iotdb-bin-resources\/blob\/main\//gitbox.apache.org\/repos\/asf?p=iotdb-bin-resources.git;a=blob_plain;f=/g" `grep "?raw=true" -rl --include="*.md"`
-sed -i "" "s/?raw=true//g" `grep "?raw=true" -rl --include="*.md"`
\ No newline at end of file
+sed -i "" "s/github.com\/apache\/iotdb-bin-resources\/blob\/main\//gitbox.apache.org\/repos\/asf?p=iotdb-bin-resources.git;a=blob_plain;f=/g" `grep "github.com\/apache\/iotdb-bin-resources\/blob\/main\/" -rl --include="**/Master/**/*.md"`
+sed -i "" "s/github.com\/apache\/iotdb-bin-resources\/blob\/main\//gitbox.apache.org\/repos\/asf?p=iotdb-bin-resources.git;a=blob_plain;f=/g" `grep "github.com\/apache\/iotdb-bin-resources\/blob\/main\/" -rl --include="**/V1*/**/*.md"`
+sed -i "" "s/?raw=true//g" `grep "?raw=true" -rl --include="**/Master/**/*.md"`
+sed -i "" "s/?raw=true//g" `grep "?raw=true" -rl --include="**/V1*/**/*.md"`
\ No newline at end of file