Skip to content

Commit 684db5b

Browse files
committed
Use shell option in workflow files for neater config
1 parent 99e2448 commit 684db5b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/format_pr.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212
- name: Install the JuliaFormatter package
13-
run: julia --color=yes -e 'using Pkg; Pkg.add(name = "JuliaFormatter", uuid = "98e50ef6-434e-11e9-1051-2b60c6c9e899")'
13+
shell: julia --color=yes {0}
14+
run: using Pkg; Pkg.add(name = "JuliaFormatter", uuid = "98e50ef6-434e-11e9-1051-2b60c6c9e899")
1415
- name: Precompile dependencies
15-
run: julia --color=yes -e 'using Pkg; Pkg.precompile()'
16+
shell: julia --color=yes {0}
17+
run: using Pkg; Pkg.precompile()
1618
- name: Use JuliaFormatter to format the code with the BlueStyle style
17-
run: julia --color=yes -e 'using JuliaFormatter; format(".", BlueStyle(); verbose = true)'
19+
shell: julia --color=yes {0}
20+
run: using JuliaFormatter; format(".", BlueStyle(); verbose = true)
1821
- name: Create pull request
1922
id: create_pr
2023
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5

0 commit comments

Comments
 (0)