Skip to content

Set user-agent header sending media fetch requests (#230) #330

Set user-agent header sending media fetch requests (#230)

Set user-agent header sending media fetch requests (#230) #330

Workflow file for this run

# Generated by Gabo (https://github.com/ashishb/gabo)
---
name: Validate Go code formatting
on: # yamllint disable-line rule:truthy
push:
branches: [main, master]
paths:
- "**.go"
- ".github/workflows/format-go.yaml"
pull_request:
branches: [main, master]
paths:
- "**.go"
- ".github/workflows/format-go.yaml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
validateCodeFormatGo:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: checkout
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@v6
with:
cache-dependency-path: |
src/wp2hugo/go.mod
go-version-file: src/wp2hugo/go.mod
- name: Validate code formatting
run: |
gofmt -l .
test -z $(gofmt -l .)