forked from Urban-Meteorology-Reading/SUEWS
-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (30 loc) · 968 Bytes
/
fprettify.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
name: Fortran_prettify
on:
# File paths to consider in the event. Optional; defaults to all
push:
paths: # Push events containing matching files
- 'src/suews/src/*'
- '.github/workflows/fprettify.yml'
jobs:
fprettify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
submodules: true
- name: Setup Python for use with actions
uses: actions/setup-python@v5
with:
python-version: '3.12' # Version range or exact version of a Python version to use, using semvers version range syntax.
- name: install fprettify
run: |
pip install fprettify -U
make pip
- name: format Fortran code
run: fprettify src/suews/src/*f95 -c .fprettify.yml
- name: Add & Commit
uses: EndBug/add-and-commit@v9
with:
add: 'src/suews/src/*f95'
message: "[GH Actions] fprettify source code"