Skip to content

Default to JuliaFormatter v2 #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: 'Format suggestion with JuliaFormatter.jl'
description: "Formats your Julia files and suggest changes"
inputs:
version:
description: 'Version of JuliaFormatter.jl. Examples: 1, 1.0, 1.0.44'
default: '1'
description: 'Version of JuliaFormatter.jl. Examples: 2, 2.0, 2.0.44'
default: '2'
suggestion-label:
description: 'If set, suggestions will only be shown for PRs with this label applied.'
default: ''
Expand All @@ -19,7 +19,7 @@ runs:
import Pkg

# Get the desired JuliaFormatter version number:
_version_original = get(ENV, "jf-version", "1")
_version_original = get(ENV, "jf-version", "2")

# Strip leading and lagging whitespace.
# We need to then convert back to String, because Pkg won't accept SubString:
Expand Down