@@ -9,7 +9,7 @@ name: Wheel
99
1010permissions :
1111 contents : read
12- id-token : write
12+ pull-requests : write
1313
1414on :
1515 push :
8282 if : |
8383 github.event_name != 'schedule' ||
8484 github.repository == 'AcademySoftwareFoundation/OpenImageIO'
85- permissions :
86- # Give the default GITHUB_TOKEN write permission to commit and push the
87- # added or changed files to the repository.
88- contents : write
8985 strategy :
9086 matrix :
9187 include :
@@ -147,9 +143,9 @@ jobs:
147143 steps :
148144 - name : Checkout repo
149145 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 }}
146+ # with:
147+ # ref: ${{ github.event.pull_request.head.ref }}
148+ # repository: ${{ github.event.pull_request.head.repo.full_name }}
153149
154150 - name : Install Python
155151 uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
@@ -179,19 +175,23 @@ jobs:
179175 - name : Copy stubs to repo
180176 run : |
181177 pwd
182- ls -la .
183- ls -la ./wheelhouse/
184178 if [ -f ./wheelhouse/OpenImageIO/__init__.pyi ]; then
185179 echo "Copying stubs into repo"
186180 cp ./wheelhouse/OpenImageIO/__init__.pyi ./src/python/stubs/OpenImageIO/__init__.pyi
181+ git diff
187182 fi
188183# if: failure()
189184
190- - name : Commit changed stubs back to the repository
191- uses : stefanzweifel/git-auto-commit-action@v6
185+ # - name: Commit changed stubs back to the repository
186+ # uses: stefanzweifel/git-auto-commit-action@v6
187+ # with:
188+ # commit_message: "Automatic update to python stubs"
189+ # # if: failure()
190+
191+ - uses : parkerbxyz/suggest-changes@v2.0.1
192192 with :
193- commit_message : " Automatic update to python stubs "
194- # if: failure()
193+ comment : ' Please commit the suggested changes from the python stub generator. '
194+ event : ' REQUEST_CHANGES '
195195
196196 # ---------------------------------------------------------------------------
197197 # Linux ARM Wheels
0 commit comments