Skip to content

Commit

Permalink
Use julia-format action (#965)
Browse files Browse the repository at this point in the history
* use julia-format action

* test reviewdog

* rename file back to FormatPR.yml

* Update src/Meshes.jl

---------

Co-authored-by: Júlio Hoffimann <[email protected]>
  • Loading branch information
JoshuaLampert and juliohm authored Jul 29, 2024
1 parent 53abb09 commit 9144833
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions .github/workflows/FormatPR.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,11 @@
name: FormatPR
name: Format suggestions
on:
push:
branches:
- master
pull_request

jobs:
build:
code-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install JuliaFormatter and format
run: |
julia -e 'import Pkg; Pkg.add("JuliaFormatter")'
julia -e 'using JuliaFormatter; format(".")'
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
- uses: julia-actions/julia-format@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: ":robot: Format .jl files"
title: '[AUTO] JuliaFormatter.jl run'
branch: auto-juliaformatter-pr
delete-branch: true
labels: formatting, automated pr, no changelog
- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
version: '1' # Set `version` to '1.0.54' if you need to use JuliaFormatter.jl v1.0.54 (default: '1')

0 comments on commit 9144833

Please sign in to comment.