Skip to content

Commit 7300208

Browse files
authored
Update Formatter.yml
1 parent 0028ec7 commit 7300208

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

.github/workflows/Formatter.yml

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,10 @@
11
name: Formatter
22

3-
# Modified from https://github.com/julia-actions/julia-format
43
on:
54
schedule:
65
- cron: '0 0 * * *'
76
workflow_dispatch:
87

98
jobs:
109
build:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v4
14-
- uses: julia-actions/setup-julia@latest
15-
- uses: julia-actions/cache@v2
16-
- uses: julia-actions/julia-buildpkg@latest
17-
- name: Install JuliaFormatter and format
18-
run: |
19-
julia -e 'import Pkg; Pkg.add("JuliaFormatter")'
20-
julia -e 'using JuliaFormatter; format(".", BlueStyle())'
21-
# https://github.com/marketplace/actions/create-pull-request
22-
# https://github.com/peter-evans/create-pull-request#reference-example
23-
- name: Create Pull Request
24-
id: cpr
25-
uses: peter-evans/create-pull-request@v7
26-
with:
27-
token: ${{ secrets.GITHUB_TOKEN }}
28-
commit-message: ":robot: Format .jl files"
29-
title: '[AUTO] JuliaFormatter.jl run'
30-
branch: auto-juliaformatter-pr
31-
delete-branch: true
32-
labels: formatting, automated pr, no changelog
33-
- name: Check outputs
34-
run: |
35-
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
36-
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
10+
uses: control-toolbox/CTActions/.github/workflows/formatter.yml@main

0 commit comments

Comments
 (0)