-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (44 loc) · 1.39 KB
/
update-client.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Update Client
on:
workflow_dispatch:
jobs:
build:
name: Build on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Prepare git
run: git config --global core.autocrlf false
if: startsWith(matrix.os, 'windows')
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: radcortez/project-metadata-action@main
name: Retrieve project metadata
id: metadata
with:
github-token: ${{secrets.GITHUB_TOKEN}}
metadata-file-path: '.github/project.yml'
local-file: true
- name: Set up JDK 11
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4
with:
distribution: temurin
java-version: 11
cache: 'maven'
- name: Update client
run: ./bin/generate.sh ${{steps.metadata.outputs.proto-sha}}
- name: Build with Maven
run: mvn -B formatter:validate verify --file pom.xml
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
with:
add-paths: |
grpc/client
commit-message: 'Update grpc client'
committer: GitHub <[email protected]>
delete-branch: true
title: 'Update grpc client'
draft: false