-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b68e3e
commit b98ac04
Showing
2 changed files
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,8 @@ jobs: | |
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
# with: | ||
# ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
|
@@ -42,15 +42,26 @@ jobs: | |
run: | | ||
task proto:all | ||
- name: Configure git | ||
run: | | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
# - name: Configure git | ||
# run: | | ||
# git config --global user.name 'github-actions[bot]' | ||
# git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
|
||
- name: Commit and push changes | ||
run: | | ||
git add . | ||
git commit -m "Regenerate protobuf files" | ||
git push origin HEAD:${{ github.event.pull_request.head.ref }} | ||
# - name: Commit and push changes | ||
# run: | | ||
# git add . | ||
# git commit -m "Regenerate protobuf files" | ||
# git push origin HEAD:${{ github.event.pull_request.head.ref }} | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
||
# Commit all changed files back to the repository | ||
- uses: planetscale/[email protected] | ||
with: | ||
commit_message: "🤖 regenerate protobuf files" | ||
repo: ${{ github.repository }} | ||
branch: ${{ github.head_ref || github.ref_name }} | ||
file_pattern: '*.pb.go' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters