Merge a8a2b42ce5 into 8c6ccfa456
commit
6350ce5f31
|
|
@ -80,11 +80,15 @@ jobs:
|
|||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Checkout influxdb3_plugins (sparse)
|
||||
run: |
|
||||
git clone --filter=blob:none --sparse https://github.com/influxdata/influxdb3_plugins.git .ext/influxdb3_plugins
|
||||
cd .ext/influxdb3_plugins
|
||||
git sparse-checkout set influxdata/ scripts/
|
||||
git checkout ${{ steps.inputs.outputs.source_commit }}
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: influxdata/influxdb3_plugins
|
||||
token: ${{ secrets.PLUGINS_CONTENT_READ_TOKEN }}
|
||||
path: .ext/influxdb3_plugins
|
||||
sparse-checkout: |
|
||||
influxdata/
|
||||
scripts/
|
||||
ref: ${{ steps.inputs.outputs.source_commit }}
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
|
|
@ -175,21 +179,21 @@ jobs:
|
|||
- name: Transform plugin documentation
|
||||
if: steps.validate.outputs.validation_passed == 'true'
|
||||
run: |
|
||||
cd docs-v2
|
||||
|
||||
# Set PLUGIN_DIR for the transformation script
|
||||
export INFLUXDB3_PLUGINS_PATH=".ext/influxdb3_plugins"
|
||||
|
||||
cd docs-v2/helper-scripts/influxdb3-plugins # ← CHANGE: Run from script directory
|
||||
|
||||
# Set path to plugins repo (relative from script directory)
|
||||
export INFLUXDB3_PLUGINS_PATH="../../../.ext/influxdb3_plugins" # ← CHANGE: Adjust relative path
|
||||
|
||||
# Run the transformation
|
||||
if [[ "${{ steps.inputs.outputs.plugins }}" == "all" ]]; then
|
||||
node helper-scripts/influxdb3-plugins/port_to_docs.js
|
||||
node port_to_docs.js # ← CHANGE: Script is in current dir now
|
||||
else
|
||||
# Transform specific plugins
|
||||
IFS=',' read -ra PLUGIN_ARRAY <<< "${{ steps.inputs.outputs.plugins }}"
|
||||
for plugin in "${PLUGIN_ARRAY[@]}"; do
|
||||
plugin=$(echo "$plugin" | xargs) # trim whitespace
|
||||
echo "Transforming plugin: $plugin"
|
||||
node helper-scripts/influxdb3-plugins/port_to_docs.js --plugin "$plugin"
|
||||
node port_to_docs.js --plugin "$plugin" # ← CHANGE: Script is in current dir
|
||||
done
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue