Skip to content

Add "www" prefix (#33) #3

Add "www" prefix (#33)

Add "www" prefix (#33) #3

Workflow file for this run

name: Codegen
on: [push]
jobs:
build:
name: Run
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Get Go version from go.mod
id: go-version
run: echo "version=$(./scripts/extract-go-version.sh)" >> $GITHUB_OUTPUT
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ steps.go-version.outputs.version }}
- name: Install deepmap/oapi-codegen
run: go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@latest
- name: Run go generate
run: make generate
- name: Check for changes
run: |
if ! git diff --exit-code; then
echo "Changes were detected after running go generate."Pj
exit 1
fi