File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -171,11 +171,23 @@ jobs:
171171 ./wheelhouse/*.whl
172172 ./wheelhouse/OpenImageIO/__init__.pyi
173173 # if stub validation fails we want to upload the stubs for users to review
174- if : success() || failure()
175-
176- # Commit all changed files back to the repository
177- - uses : stefanzweifel/git-auto-commit-action@v6
178- commit_message : " Automatic update to python stubs"
174+ # if: success() || failure()
175+
176+ - name : Copy stubs to repo
177+ run : |
178+ pwd
179+ tree .
180+ if [ -f ./wheelhouse/OpenImageIO/__init__.pyi ]; then
181+ echo "Copying stubs into repo"
182+ cp ./wheelhouse/OpenImageIO/__init__.pyi ./src/python/stubs/OpenImageIO/__init__.pyi
183+ fi
184+ # if: failure()
185+
186+ - name : Commit changed stubs back to the repository
187+ uses : stefanzweifel/git-auto-commit-action@v6
188+ with :
189+ commit_message : " Automatic update to python stubs"
190+ # if: failure()
179191
180192 # ---------------------------------------------------------------------------
181193 # Linux ARM Wheels
You can’t perform that action at this time.
0 commit comments