docs-builder: add pull-requests: write permission to docs-build wor…
#3058
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 | |
| on: | |
| schedule: | |
| - cron: '0 1 * * *' | |
| push: | |
| branches: | |
| - github-actions | |
| - main | |
| - "8.*" | |
| - "9.*" | |
| pull_request: | |
| branches: | |
| - main | |
| - "8.*" | |
| - "9.*" | |
| env: | |
| GITHUB_ACTIONS: true | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: { fetch-depth: 1 } | |
| - uses: actions/[email protected] | |
| with: { go-version: '1.x' } | |
| - run: go version | |
| - run: make lint |