Add workflow to retry failed PR jobs once #8664
Workflow file for this run
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: golangci-lint | |
| on: | |
| schedule: | |
| - cron: '0 5 * * *' | |
| pull_request: | |
| jobs: | |
| golangci: | |
| name: golangci-lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| submodules: recursive | |
| - name: Setup Go | |
| uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 | |
| with: | |
| go-version-file: 'go.mod' | |
| check-latest: true | |
| cache: false | |
| - name: Generate Golang | |
| run: | | |
| export PATH=$PATH:/home/runner/go/bin/ | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 | |
| with: | |
| # Required: the version of golangci-lint is required; we pin a specific patch version for reproducible results. | |
| version: v2.11.1 | |
| args: --timeout=10m --config=.golangci.json | |
| # Optional: show only new issues if it's a pull request. The default value is `false`. | |
| # The condition sets this to true for PR events. | |
| only-new-issues: "${{ github.event_name == 'pull_request'}}" | |
| skip-cache: true |