Add common settings (#4547) #94
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
| 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@v5 | |
| with: | |
| go-version: '1.24.x' | |
| - name: Install | |
| run: | | |
| echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
| go install | |
| - name: Build | |
| run: | | |
| make cli | |
| - uses: stefanzweifel/git-auto-commit-action@v5.0.1 | |
| with: | |
| commit_message: Build CLI docs and shell completions | |
| branch: master | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |