Skip to content

Commit

Permalink
Try to get the current file here
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwlchan committed Nov 22, 2024
1 parent e2d5473 commit dff7f51
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/caddy_fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ jobs:
- name: Format my Caddyfiles
run: |
find . -name Caddyfile -o -name '*.Caddyfile'
find . -name Caddyfile -o -name '*.Caddyfile' | xargs -I '{}' --verbose caddy fmt --overwrite '{}'
caddy fmt --overwrite ./caddy/gone.Caddyfile ./caddy/redirects.Caddyfile ./Caddyfile
find . \
-name Caddyfile \
-o -name '*.Caddyfile' ! -name 'redirects.Caddyfile' | \
xargs -I '{}' --verbose caddy fmt --overwrite '{}'
- name: Print changes
run: git diff
Expand Down

0 comments on commit dff7f51

Please sign in to comment.