fix(errors): retry transient "failed calling webhook" apiserver 500s #4017
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: PR Feature Check | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - edited | |
| - reopened | |
| - synchronize | |
| permissions: | |
| contents: read | |
| jobs: | |
| feature-pr-handling: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Check if feature PR | |
| id: check-type | |
| env: | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| run: | | |
| if [[ "$PR_TITLE" =~ ^feat(\(.*\))?!?:\ .+ ]]; then | |
| echo "is_feat=true" >> "$GITHUB_OUTPUT" | |
| fi | |
| - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 | |
| if: steps.check-type.outputs.is_feat == 'true' | |
| with: | |
| go-version: "1.26" | |
| cache: true | |
| - name: Checkout | |
| if: steps.check-type.outputs.is_feat == 'true' | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 50 | |
| - name: Ensure ./.features/pending/*.md addition(s) | |
| if: steps.check-type.outputs.is_feat == 'true' | |
| id: changed-files | |
| uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6 | |
| with: | |
| files: | | |
| .features/pending/*.md | |
| - name: No ./.features/*.md addition | |
| if: steps.check-type.outputs.is_feat == 'true' && steps.changed-files.outputs.added_files_count == 0 | |
| run: | | |
| echo "No feature description was added to the ./.features/pending/ directory for this feature PR." | |
| echo "Please add a .md file to the ./.features/pending/ directory." | |
| echo "See docs/running-locally.md for more details." | |
| false | |
| - name: Validate ./.features/*.md changes | |
| if: steps.check-type.outputs.is_feat == 'true' && steps.changed-files.outputs.added_files_count > 0 | |
| run: | | |
| echo "A feature description was added to the ./.features/ directory." | |
| make features-validate \ | |
| || { echo "New ./.features/*.md file failed validation."; exit 1; } |