Skip to content

Commit

Permalink
fix: precent comit on backend action
Browse files Browse the repository at this point in the history
  • Loading branch information
stritti committed Oct 19, 2023
1 parent 8fa4780 commit 9bdc4b2
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,30 @@ env:

jobs:
formatting:
name: Formatting
runs-on: ubuntu-latest
steps:
- if: github.event_name != 'pull_request'
- name: Checkout
if: github.event_name != 'pull_request'
uses: actions/checkout@v3
- if: github.event_name == 'pull_request'
- name: Checkout
if: github.event_name == 'pull_request'
uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- uses: axel-op/googlejavaformat-action@v3
- name: Format
if: github.event.pull_request.head.repo.full_name == github.repository
uses: axel-op/googlejavaformat-action@v3
with:
args: "--skip-sorting-imports --replace"
# Recommended if you use MacOS:
# githubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Format
if: github.event.pull_request.head.repo.full_name != github.repository
uses: axel-op/googlejavaformat-action@v3
with:
skip-commit: true
args: "--skip-sorting-imports --replace"
# Recommended if you use MacOS:
# githubToken: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 9bdc4b2

Please sign in to comment.