Skip to content

Commit 271b979

Browse files
committed
fix
Signed-off-by: Chad Dombrova <[email protected]>
1 parent 6ebf3e7 commit 271b979

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/wheel.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)