File tree Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,9 @@ jobs:
147
147
steps :
148
148
- name : Checkout repo
149
149
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
150
+ with :
151
+ ref : ${{ github.event.pull_request.head.ref }}
152
+ repository : ${{ github.event.pull_request.head.repo.full_name }}
150
153
151
154
- name : Install Python
152
155
uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
@@ -171,11 +174,24 @@ jobs:
171
174
./wheelhouse/*.whl
172
175
./wheelhouse/OpenImageIO/__init__.pyi
173
176
# 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"
177
+ # if: success() || failure()
178
+
179
+ - name : Copy stubs to repo
180
+ run : |
181
+ pwd
182
+ ls -la .
183
+ ls -la ./wheelhouse/
184
+ if [ -f ./wheelhouse/OpenImageIO/__init__.pyi ]; then
185
+ echo "Copying stubs into repo"
186
+ cp ./wheelhouse/OpenImageIO/__init__.pyi ./src/python/stubs/OpenImageIO/__init__.pyi
187
+ fi
188
+ # if: failure()
189
+
190
+ - name : Commit changed stubs back to the repository
191
+ uses : stefanzweifel/git-auto-commit-action@v6
192
+ with :
193
+ commit_message : " Automatic update to python stubs"
194
+ # if: failure()
179
195
180
196
# ---------------------------------------------------------------------------
181
197
# Linux ARM Wheels
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ def main() -> None:
209
209
print (get_colored_diff (old_text , new_text ))
210
210
print ("Run `make pystubs` locally and commit the results for review." )
211
211
print ("The resulting __init__.pyi file will be uploaded as an artifact on this job." )
212
- sys .exit (2 )
212
+ # sys.exit(2)
213
213
214
214
215
215
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments