Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
ci: suggest formatting fixes inline (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
chingor13 committed Oct 9, 2020
1 parent 1959759 commit b69e4a4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/formatting.yaml
@@ -0,0 +1,25 @@
on:
pull_request_target:
types: [opened, synchronize]
branches:
- master
name: format
jobs:
format-code:
runs-on: ubuntu-latest
env:
ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: actions/setup-java@v1
with:
java-version: 11
- run: "mvn com.coveo:fmt-maven-plugin:format"
- uses: googleapis/code-suggester@v1.8.0 # takes the changes from git directory
with:
command: review
pull_number: ${{ github.event.pull_request.number }}
git_dir: '.'

0 comments on commit b69e4a4

Please sign in to comment.