Back to all reviewers

Validate workflow files

oven-sh/bun
Based on 2 comments
Yaml

Ensure all CI/CD workflow configuration files are validated for accuracy and consistency. Small errors in workflow files can prevent automation from triggering correctly or cause unexpected behavior. Pay special attention to:

CI/CD Yaml

Reviewer Prompt

Ensure all CI/CD workflow configuration files are validated for accuracy and consistency. Small errors in workflow files can prevent automation from triggering correctly or cause unexpected behavior. Pay special attention to:

  1. File extension consistency between actual files and path triggers
  2. Correct property names according to the platform’s documentation

Examples of common issues:

Incorrect path trigger (file extension mismatch):

on:
  pull_request:
    paths:
      - ".github/workflows/bun-release-test.yml" # Wrong: actual file has .yaml extension

Correct path trigger:

on:
  pull_request:
    paths:
      - ".github/workflows/bun-release-test.yaml" # Matches the actual file extension

Incorrect property name:

- name: Create Pull Request
  uses: peter-evans/create-pull-request@v3
  with:
    lables: "automation" # Wrong: 'lables' is a typo

Correct property name:

- name: Create Pull Request
  uses: peter-evans/create-pull-request@v3
  with:
    labels: "automation" # Correct property name

Consider implementing a validation step in your workflow development process to catch these issues early.

2
Comments Analyzed
Yaml
Primary Language
CI/CD
Category

Source Discussions