fix: combine PAT and path fixes for plugin sync
parent
d645e75215
commit
df8d5f8378
|
|
@ -179,21 +179,21 @@ jobs:
|
||||||
- name: Transform plugin documentation
|
- name: Transform plugin documentation
|
||||||
if: steps.validate.outputs.validation_passed == 'true'
|
if: steps.validate.outputs.validation_passed == 'true'
|
||||||
run: |
|
run: |
|
||||||
cd docs-v2
|
cd docs-v2/helper-scripts/influxdb3-plugins # ← CHANGE: Run from script directory
|
||||||
|
|
||||||
# Set PLUGIN_DIR for the transformation script
|
# Set path to plugins repo (relative from script directory)
|
||||||
export INFLUXDB3_PLUGINS_PATH=".ext/influxdb3_plugins"
|
export INFLUXDB3_PLUGINS_PATH="../../../.ext/influxdb3_plugins" # ← CHANGE: Adjust relative path
|
||||||
|
|
||||||
# Run the transformation
|
# Run the transformation
|
||||||
if [[ "${{ steps.inputs.outputs.plugins }}" == "all" ]]; then
|
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
|
else
|
||||||
# Transform specific plugins
|
# Transform specific plugins
|
||||||
IFS=',' read -ra PLUGIN_ARRAY <<< "${{ steps.inputs.outputs.plugins }}"
|
IFS=',' read -ra PLUGIN_ARRAY <<< "${{ steps.inputs.outputs.plugins }}"
|
||||||
for plugin in "${PLUGIN_ARRAY[@]}"; do
|
for plugin in "${PLUGIN_ARRAY[@]}"; do
|
||||||
plugin=$(echo "$plugin" | xargs) # trim whitespace
|
plugin=$(echo "$plugin" | xargs) # trim whitespace
|
||||||
echo "Transforming plugin: $plugin"
|
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
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue