Skip to content

Bump peter-evans/create-pull-request from 6.1.0 to 7.0.3 #344

Bump peter-evans/create-pull-request from 6.1.0 to 7.0.3

Bump peter-evans/create-pull-request from 6.1.0 to 7.0.3 #344

Workflow file for this run

name: format-check
on:
push:
branches:
- 'master'
- 'release-'
tags: '*'
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: [1.3.0]
julia-arch: [x86]
os: [ubuntu-latest]
steps:
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
- uses: actions/checkout@v4
- name: Install JuliaFormatter and format
# The version of JuliaFormatter used is just to show how to specify the version. The latest
# version would be preferrable.
run: |
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="0.1.40"))'
julia -e 'using JuliaFormatter; format(".", verbose=true)'
- name: Format check
run: |
julia -e '
out = Cmd(`git diff --name-only`) |> read |> String
if out == ""
exit(0)
else
@error "Some files have not been formatted !!!"
write(stdout, out)
exit(1)
end'