There was an error while loading. Please reload this page.
1 parent faa130b commit b8898c6Copy full SHA for b8898c6
1 file changed
.github/workflows/phs_style.yaml
@@ -28,11 +28,18 @@ jobs:
28
- name: Install posit-dev/air
29
uses: posit-dev/setup-air@63e80dedb6d275c94a3841e15e5ff8691e1ab237 # v1.0.0
30
31
- - name: Include standard air.toml
+ - name: Include standard air.toml (overwrite existing)
32
run: |
33
- curl -o air.toml https://raw.githubusercontent.com/Public-Health-Scotland/actions/${{ github.action_ref }}/air.toml
+ echo '[format]' > air.toml
34
+ echo 'line-ending = "lf"' >> air.toml
35
- - name: Format
36
+ - name: Add air.toml to .Rbuildignore if it exists
37
+ run: |
38
+ if [ -f .Rbuildignore ]; then
39
+ grep -qxF 'air.toml' .Rbuildignore || echo 'air.toml' >> .Rbuildignore
40
+ fi
41
+
42
+ - name: Format using air
43
run: air format .
44
45
- name: Commit and push changes
0 commit comments