Skip to content

docs: specify request method #94

docs: specify request method

docs: specify request method #94

Workflow file for this run

name: format
on:
push:
branches:
- master
paths:
- "**.go"
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "^1.19"
- name: Format with gofmt
run: gofmt -w .
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "style(format): run gofmt"
- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@latest
- name: Format with goimports
run: goimports -w .
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "style(format): run goimports"