Skatteetaten / terraform-nomad-postgres

Apache License 2.0
8 stars 5 forks source link

Skip superlinter #52

Open claesgill opened 3 years ago

claesgill commented 3 years ago

What is the issue?

From time to time we experience bugs with the Github Superlinter and it could fail. Proposing that we implement a skip-linter label to skip the linter-test.

Suggestion(s)/solution(s) [Optional]

Something like this should do the job:

jobs:
  linter:
    runs-on: ubuntu-latest
    if: github.event.pull_request.labels.*.name != 'skip-linter'
    steps:
...

:warning: Note

I tried to implement this, but the linter-job is set as required so it didn't work. I think it needs to be turned off by the repo owner to work, but I'm not sure.

Checklist (after created issue)

claesgill commented 3 years ago

Will retry this now that Fredrik has removed linter as required.