Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .github/workflows/checkstyle.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: Code Formatter

on:
pull_request:
push:
branches:
- master
on: [push]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@master
- uses: actions/setup-python@v2
- name: Set up JDK 12
uses: actions/setup-java@v1
Expand All @@ -24,5 +20,5 @@ jobs:
git config --global user.name github-actions
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git commit -am "Formatted with Google Java Formatter"
git push --force origin HEAD:$GITHUB_REF
git commit -am "Formatted with Google Java Formatter" || true
git push --force origin HEAD:$GITHUB_REF || true