Skip to content

Commit

Permalink
Apply format if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarfgp committed Nov 26, 2024
1 parent 8bd2605 commit e2c10fa
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,34 @@ env:
CONFIG: Release

jobs:
format:
name: Format
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x.x'

- run: dotnet tool restore

- name: Format
run: find . -name '*.fs' | xargs dotnet fantomas

- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Apply formatting"
commit_options: '--no-verify --signoff'
repository: .
skip_dirty_check: false
skip_fetch: false
skip_checkout: true
disable_globbing: true
create_branch: false

pull_request:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit e2c10fa

Please sign in to comment.