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

lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon-website.git


The following commit(s) were added to refs/heads/master by this push:
     new e78a5eba78 chore: pass base href in env vars instead of inputs (#12)
e78a5eba78 is described below

commit e78a5eba787410ec0a69645a3f1be1654bfaa89a
Author: Laffery <[email protected]>
AuthorDate: Fri Nov 8 17:31:04 2024 +0800

    chore: pass base href in env vars instead of inputs (#12)
---
 .github/workflows/build.yml | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6fc4593c75..5725687ac3 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -18,15 +18,10 @@ name: "Build website and document"
 env:
   versions: ("master" "0.9") # defines what versions of document should be 
updated
   latest_version: "0.9" # defines what version docs/latest links to
+  base_href: "https://paimon.apache.org/"; # website base href
 
 on:
   workflow_dispatch:
-    inputs:
-      base_href:
-        description: 'Base href for the website'
-        type: string
-        default: 'https://paimon.apache.org/'
-        required: true
   schedule:
     - cron: '0 0 * * *' # deploy every day
 
@@ -82,7 +77,7 @@ jobs:
           # build website
           npm config --global set registry https://registry.npmmirror.com/
           pnpm install
-          pnpm run build --base-href="${{ inputs.base_href }}"
+          pnpm run build --base-href="${{ env.base_href }}"
 
       - name: Move out output
         run: |

Reply via email to