Set user-agent header sending media fetch requests (#230) #330
This file contains hidden or 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
| # 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 .) |