-
Notifications
You must be signed in to change notification settings - Fork 1
27 lines (26 loc) · 960 Bytes
/
codeformat.yml
File metadata and controls
27 lines (26 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: format-pr
on:
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/setup-julia@latest
- uses: actions/checkout@v2
- name: Install JuliaFormatter and format
run: |
julia -e 'import Pkg; Pkg.add("JuliaFormatter")'
julia -e 'using JuliaFormatter; format(".", whitespace_typedefs=true, margin=150, whitespace_ops_in_indices=true)'
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Format .jl files
title: '[AUTO] Format .jl files'
branch: create-pull-request/format-pr
labels: formatting, automated pr, no changelog
- name: Check outputs
run: |
echo 'Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}'
echo 'Pull Request Number - ${{ steps.cpr.outputs.pr_number }}'