Caddy #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Caddy Format | |
on: | |
push: | |
branches: ["main"] | |
paths: | |
- "docker/proxy/**" | |
workflow_dispatch: | |
jobs: | |
format: | |
name: Format Caddyfile | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Docker | |
uses: docker/setup-buildx-action@v1 | |
- name: Format Caddyfile | |
run: docker run --rm -v $(pwd)/docker/proxy/Caddyfile:/Caddyfile caddy:2.4.3-alpine fmt /Caddyfile | |
- name: Commit changes | |
run: | | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "" | |
git add docker/proxy/Caddyfile | |
git commit -m "Auto Format Caddyfile" | |
git push |