Skip to content

Commit

Permalink
Fix Python SDK Doc Build
Browse files Browse the repository at this point in the history
  • Loading branch information
tcamise-gpsw committed Apr 11, 2024
1 parent 58eb0c7 commit 7ee6bcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
name: Check modified files for Python SDK changes
runs-on: ubuntu-latest
outputs:
run_job: ${{ steps.check_files.outputs.run_job }}
build_python_sdk: ${{ steps.check_files.outputs.found_modified_python_file }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -54,18 +54,18 @@ jobs:
git diff --name-only HEAD^ HEAD >files.txt
while IFS= read -r file; do
if [[ $file != demos/python/sdk_wireless_camera_control* ]]; then
echo "{run_job}={false}" >> $GITHUB_OUTPUT
echo "found_modified_python_file=false" >> "$GITHUB_OUTPUT"
else
echo "Found a Python SDK modified file"
echo "{run_job}={true}" >> $GITHUB_OUTPUT
echo "found_modified_python_file=true" >> "$GITHUB_OUTPUT"
break
fi
done <files.txt
python_sdk:
name: Build and Deploy Python SDK Documentation
needs: check
if: needs.check.outputs.run_job == 'true'
if: needs.check.outputs.build_python_sdk == 'true'
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down

0 comments on commit 7ee6bcf

Please sign in to comment.