Skip to content

print curl version again #3

print curl version again

print curl version again #3

Workflow file for this run

name: "Lint my Caddyfiles"
on:
push:
branches:
- main
paths:
- '.github/workflows/caddy_fmt.yml'
- 'Caddyfile'
- '**/Caddyfile'
- '**/*.Caddyfile'
pull_request:
branches:
- main
paths:
- '.github/workflows/caddy_fmt.yml'
- 'Caddyfile'
- '**/Caddyfile'
- '**/*.Caddyfile'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: "Check out the repo"
uses: actions/checkout@v4
- name: Install curl, check version
apt install -y debian-keyring debian-archive-keyring apt-transport-https curl

Check failure on line 31 in .github/workflows/caddy_fmt.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/caddy_fmt.yml

Invalid workflow file

You have an error in your yaml syntax on line 31
curl --version
- name: Install Caddy
run:
# These instructions for installing Caddy are taken from
# the Caddy docs:
# https://caddyserver.com/docs/install#static-binaries
apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
curl --version
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
apt update
apt install caddy
- name: Format my Caddyfiles
run: find . -name Caddyfile -o -name '*.Caddyfile' | xargs caddy fmt --overwrite
- name: Check for changes
run: git diff --exit-code