Skip to content

Commit ab54707

Browse files
committed
fix
Signed-off-by: Chad Dombrova <chadrik@gmail.com>
1 parent 6ebf3e7 commit ab54707

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/wheel.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,21 @@ 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+
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

0 commit comments

Comments
 (0)