Skip to content

Commit

Permalink
Format caddyfile anywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed Mar 1, 2024
1 parent 716f8c5 commit 33ef8bc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ jobs:
- uses: actions/checkout@v4
- name: Format caddyfile
run: |
cd dockers/femiwiki/development
cp Caddyfile Caddyfile.orig
docker run -v $PWD:/srv caddy \
caddy fmt --overwrite
diff Caddyfile.orig Caddyfile
for CADDYFILE_PATH in **/Caddyfile; do
docker run -v $(dirname $(realpath $CADDYFILE_PATH)):/srv caddy \
caddy fmt --diff
done
etc-lint:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 33ef8bc

Please sign in to comment.