From 14419cbd029a281926c7190f4072e477c301b657 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Thu, 27 Jan 2022 11:54:32 -0600 Subject: [PATCH] Create pr instead of commit --- .github/workflows/update_protobufs.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/update_protobufs.yml b/.github/workflows/update_protobufs.yml index 5af061e9..8debfcd1 100644 --- a/.github/workflows/update_protobufs.yml +++ b/.github/workflows/update_protobufs.yml @@ -11,7 +11,7 @@ jobs: with: submodules: true - - name: Update Submodule + - name: Update submodule run: | git submodule update --remote proto @@ -25,11 +25,9 @@ jobs: run: | ./bin/regen-protos.sh - - name: Commit update - run: | - git config --global user.name 'github-actions' - git config --global user.email 'bot@noreply.github.com' - git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} - git add proto - git add src/mesh - git commit -m "Update protobuf submodule" && git push || echo "No changes to commit" + - name: Create pull request + uses: peter-evans/create-pull-request@v3 + with: + add-paths: | + proto + src/mesh