Skip to content

Commit

Permalink
Updated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Oct 19, 2024
1 parent 8410913 commit 22a8dc2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 88 deletions.
6 changes: 2 additions & 4 deletions .github/actions/check-formatting/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ runs:
- name: Checkout code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Check for formatting
uses: leventeBajczi/[email protected]
uses: ./.github/actions/cache-build
with:
settings-file: "./.idea/codeStyles/Project.xml"
file-mask: "*.java,*.kt"
additional-options: "-dry"
arguments: spotlessCheck
77 changes: 0 additions & 77 deletions .github/workflows/reapply_copyright.yml

This file was deleted.

9 changes: 2 additions & 7 deletions .github/workflows/reformat-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ name: Reformat code
on:
workflow_dispatch:
inputs:
file_mask:
description: 'File mask to reformat'
required: true
default: '*.java,*.kts,*.kt'
direct-commit:
type: boolean
default: false
Expand All @@ -28,10 +24,9 @@ jobs:
token: ${{ steps.generate-token.outputs.token }}

- name: Do reformat
uses: leventeBajczi/[email protected]
uses: ./.github/actions/cache-build
with:
settings-file: "./.idea/codeStyles/Project.xml"
file-mask: ${{ inputs.file_mask }}
arguments: spotlessApply

- name: Create Pull Request
if: ${{ !inputs.direct-commit }}
Expand Down

0 comments on commit 22a8dc2

Please sign in to comment.