Bluehawk icon indicating copy to clipboard operation
Bluehawk copied to clipboard

Publish a GHA that runs `bluehawk check`

Open nlarew opened this issue 1 year ago • 0 comments

The goal here is to ensure that Bluehawked files use valid tags via CI/CD in a reusable way.

The action should accept the path for a file or directory and run bluehawk check on it.

If the command exits without reporting an error, then the action succeeds.

Otherwise, the action fails and reports the errors in the GHA stdout.

name: All Bluehawk Examples Use Valid Tags

on:
  pull_request:
    paths:
      - "examples/**"

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: mongodb-university/bluehawk/github-actions/check@main
        with:
          path: "examples/**"

nlarew avatar Apr 26 '23 19:04 nlarew