Skip to content

Commit

Permalink
Only error, no push - on remote PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Nov 17, 2023
1 parent 0b1746d commit 3582e1e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,16 @@ jobs:
show-progress: 'false'
- name: Install prettier-plugin-java
run: npm install
- name: Prettify code
- name: Check code style (using prettier-java)
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository
uses: creyD/[email protected]
with:
prettier_options: --check **/*.java
prettier_plugins: "prettier-plugin-java"
clean_node_folder: false
dry: true
- name: Reformat code (using prettier-java)
if: "!(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)"
uses: creyD/[email protected]
with:
prettier_options: --write **/*.java
Expand Down

0 comments on commit 3582e1e

Please sign in to comment.