Skip to content

Commit 6287808

Browse files
Merge pull request #2938 from anthony-c-martin/main
Generation Action: Use commit instead of PR action
2 parents 4cb136e + ec5ba46 commit 6287808

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/generate-schemas.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ jobs:
7272
combine:
7373
needs: generate
7474
name: Combine Schema Batches
75+
permissions:
76+
contents: write
7577
runs-on: ubuntu-latest
7678
steps:
7779
- name: Checkout repo
@@ -98,19 +100,10 @@ jobs:
98100
--batch-count ${{ env.BATCH_COUNT }}
99101
working-directory: generator
100102

101-
- name: Create Pull Request
102-
uses: peter-evans/create-pull-request@v5
103+
- name: Push to autogenerate-batch branch
104+
uses: stefanzweifel/git-auto-commit-action@v4
103105
with:
104-
committer: GitHub <noreply@github.com>
105-
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
106-
signoff: false
106+
commit_message: Update Generated Schemas
107107
branch: autogenerate-batch
108-
delete-branch: true
109-
title: |
110-
Update Generated Schemas
111-
body: |
112-
Update Generated Schemas
113-
commit-message: |
114-
Update Generated Schemas
115-
labels: autogenerate
116-
draft: false
108+
push_options: '--force'
109+
create_branch: true

0 commit comments

Comments
 (0)