Skip to content
This repository was archived by the owner on Dec 15, 2023. It is now read-only.

Commit 1f11062

Browse files
ci(java): suggest formatting fixes (#309)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/d01b2aaa-4513-43a1-ac0a-689f57cc5d30/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: googleapis/synthtool@b65ef07
1 parent ec39a79 commit 1f11062

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/formatting.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
pull_request_target:
3+
types: [opened, synchronize]
4+
branches:
5+
- master
6+
name: format
7+
jobs:
8+
format-code:
9+
runs-on: ubuntu-latest
10+
env:
11+
ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
ref: ${{github.event.pull_request.head.ref}}
16+
repository: ${{github.event.pull_request.head.repo.full_name}}
17+
- uses: actions/setup-java@v1
18+
with:
19+
java-version: 11
20+
- run: "mvn com.coveo:fmt-maven-plugin:format"
21+
- uses: googleapis/[email protected]
22+
with:
23+
command: review
24+
pull_number: ${{ github.event.pull_request.number }}
25+
git_dir: '.'

synth.metadata

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-speech.git",
7-
"sha": "9e196b2f6d843f71d4e68da49f4dd2961b8a1578"
7+
"sha": "ec39a79abfb32de7577a6b5116d457283c7f7f6b"
88
}
99
},
1010
{
@@ -27,7 +27,7 @@
2727
"git": {
2828
"name": "synthtool",
2929
"remote": "https://github.com/googleapis/synthtool.git",
30-
"sha": "0762e8ee2ec21cdfc4d82020b985a104feb0453b"
30+
"sha": "b65ef07d99946d23e900ef2cc490274a16edd336"
3131
}
3232
}
3333
],
@@ -62,6 +62,7 @@
6262
".github/trusted-contribution.yml",
6363
".github/workflows/auto-release.yaml",
6464
".github/workflows/ci.yaml",
65+
".github/workflows/formatting.yaml",
6566
".github/workflows/samples.yaml",
6667
".kokoro/build.bat",
6768
".kokoro/build.sh",

0 commit comments

Comments
 (0)