Add a linter to disable fmt.Printf in code (#4154) #76
This file contains 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
name: Build docs and shell completions | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'cmd/*.go' | |
jobs: | |
build_cli: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.COZYBOT_ACCESS_TOKEN }} | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21.x' | |
- name: Install | |
run: | | |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
go install | |
- name: Build | |
run: | | |
make cli | |
- uses: stefanzweifel/[email protected] | |
with: | |
commit_message: Build CLI docs and shell completions | |
branch: master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |