Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
graham-chainlink committed Sep 16, 2024
1 parent 1b68e3e commit 7d466cd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/regenerate-protobuf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
# Include the pull request ref in the checkout action to prevent merge commit
# https://github.com/actions/checkout?tab=readme-ov-file#checkout-pull-request-head-commit-instead-of-merge-commit
with:
ref: ${{ github.event.pull_request.head.ref }}
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: "1.22.0"

Expand All @@ -42,15 +44,11 @@ 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: Commit and push changes
run: |
git add .
git commit -m "Regenerate protobuf files"
git push origin HEAD:${{ github.event.pull_request.head.ref }}
- 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}}
1 change: 1 addition & 0 deletions service-a/bye/bye.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ option go_package = "github.com/graham-chainlink/shared-proto-spike/service-a/by
message ByeRequest {
string name = 1;
string signature = 2;
string icon = 3;
}

// The response message containing the greetings.
Expand Down

0 comments on commit 7d466cd

Please sign in to comment.