This is an automated email from the ASF dual-hosted git repository.
davidarthur pushed a commit to branch markdown
in repository https://gitbox.apache.org/repos/asf/kafka-site.git
The following commit(s) were added to refs/heads/markdown by this push:
new fd8ff10fd fix parameterization
fd8ff10fd is described below
commit fd8ff10fd45dabfd13646ae37a3140954111e68d
Author: David Arthur <[email protected]>
AuthorDate: Wed Dec 17 16:05:39 2025 -0500
fix parameterization
---
.github/workflows/build-and-deploy.yml | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/build-and-deploy.yml
b/.github/workflows/build-and-deploy.yml
index 7ca61fb58..93f98f461 100644
--- a/.github/workflows/build-and-deploy.yml
+++ b/.github/workflows/build-and-deploy.yml
@@ -5,11 +5,10 @@ on:
branches: [ markdown ]
workflow_dispatch:
inputs:
- target_branches:
- description: 'Comma-separated list of branches to build (e.g.,
markdown,main)'
- required: false
- default: 'markdown'
- type: string
+ deploy-to-asf-site:
+ description: 'Check to update live website'
+ default: false
+ type: boolean
env:
# Default branches - can be overridden by repository variables
@@ -50,11 +49,18 @@ jobs:
runs-on: ubuntu-latest
needs: build-html
steps:
+ - name: Env
+ run: printenv
+ env:
+ GITHUB_CONTEXT: ${{ toJson(github) }}
+ - name: Configure
+ id: configure
+ run: echo "ref=${{ inputs.deploy-to-asf-site && 'asf-site' ||
'asf-staging' }}" >> "$GITHUB_OUTPUT"
- name: Checkout staging
uses: actions/checkout@v5
with:
persist-credentials: true # Needed to commit and push later
- ref: asf-site
+ ref: 'asf-staging'
- name: Reset HTML
run: |
rm -rf *
@@ -88,7 +94,7 @@ jobs:
echo "## Deployment Summary" >> $GITHUB_STEP_SUMMARY
echo "- **Source Branch**: ${{ github.ref_name }}" >>
$GITHUB_STEP_SUMMARY
echo "- **Commit**: ${{ github.sha }}" >> $GITHUB_STEP_SUMMARY
- echo "- **Target Branch**: asf-site" >> $GITHUB_STEP_SUMMARY
+ echo "- **Target Branch**: ${{ steps.configure.outputs.ref }}" >>
$GITHUB_STEP_SUMMARY
echo "- **Build Time**: $(date)" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Build Output" >> $GITHUB_STEP_SUMMARY