Skip to content

Commit a8e964b

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

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/wheel.yml

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

0 commit comments

Comments
 (0)