Skip to content

Commit 8da1339

Browse files
committed
ci: Automatically push updates to stubs to the current branch
1 parent 725885f commit 8da1339

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/wheel.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ jobs:
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
8589
strategy:
8690
matrix:
8791
include:
@@ -169,6 +173,10 @@ jobs:
169173
# if stub validation fails we want to upload the stubs for users to review
170174
if: success() || failure()
171175

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"
179+
172180
# ---------------------------------------------------------------------------
173181
# Linux ARM Wheels
174182
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)