Skip to content
terminal

GitHub Action

Prometheus Operator Lint Action

v2.0.3 Latest version

Prometheus Operator Lint Action

terminal

Prometheus Operator Lint Action

Run po-lint on your yaml files

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Prometheus Operator Lint Action

uses: p1nkun1c0rns/[email protected]

Learn more about this action in p1nkun1c0rns/prometheus-operator-lint-action

Choose a version

prometheus-operator-lint-action

Test

This action ...

Contributions

  • Contributions are welcome!
  • Give ⭐ - if you want to encourage me to work on a project
  • Don't hesitate create issue for new feature you dream of or if you suspect some bug

Project versioning

Project use Semantic Versioning. We recommended to use the latest and specific release version.

In order to keep your project dependencies up to date you can watch this repository (Releases only) or use automatic tools like Dependabot.

Usage

See action.yml

One Path

steps:
- uses: docker://p1nkun1c0rns/prometheus-operator-lint-action:v2.0.3
  env:
    INPUT_PATH: "./"
    INPUT_FILES: ".yaml"
    INPUT_EXCLUDE: "skip"

Multiple Paths

steps:
- uses: docker://p1nkun1c0rns/prometheus-operator-lint-action:v2.0.3
  env:
    INPUT_PATH: "./DEV/monitoring,./TEST/monitoring,./PROD/monitoring"
    INPUT_FILES: "*.yaml"
    INPUT_EXCLUDE: "foobar"

Testing

For testing the bats testing framework is used.

git clone https://github.com/p1nkun1c0rns/prometheus-operator-lint-action.git
./tests/run.bats

License

The scripts and documentation in this project are released under the MIT License

Release

  • create new branch
  • make your changes, if needed
  • commit your changes like
    • Patch Release: fix(script): validate input file to prevent empty files
    • Minor Release: feat(dockerimage): add open for multiple input files
    • Major Release look her