File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -173,9 +173,18 @@ jobs:
173173 # if stub validation fails we want to upload the stubs for users to review
174174 if : success() || failure()
175175
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"
176+ - name : Copy stubs to repo
177+ run : |
178+ if [ -f ./wheelhouse/OpenImageIO/__init__.pyi ]; then
179+ cp ./wheelhouse/OpenImageIO/__init__.pyi "$GITHUB_WORKSPACE/src/python/stubs/OpenImageIO/__init__.pyi"
180+ fi
181+ if : failure()
182+
183+ - name : Commit changed stubs back to the repository
184+ uses : stefanzweifel/git-auto-commit-action@v6
185+ with :
186+ commit_message : " Automatic update to python stubs"
187+ if : failure()
179188
180189 # ---------------------------------------------------------------------------
181190 # Linux ARM Wheels
You can’t perform that action at this time.
0 commit comments