forked from BretFisher/udemy-docker-mastery
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (25 loc) · 1.03 KB
/
call-super-linter.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
# template source: https://github.com/bretfisher/super-linter-workflow/blob/main/templates/call-super-linter.yaml
name: Lint Code Base
on:
push:
branches: [main]
pull_request:
jobs:
call-super-linter:
name: Call Super-Linter
permissions:
contents: read # clone the repo to lint
statuses: write #read/write to repo custom statuses
### use Reusable Workflows to call my workflow remotely
### https://docs.github.com/en/actions/learn-github-actions/reusing-workflows
### you can also call workflows from inside the same repo via file path
uses: bretfisher/super-linter-workflow/.github/workflows/reusable-super-linter.yaml@main
### Optional settings examples
with:
### For a DevOps-focused repository. Prevents some code-language linters from running
### defaults to false
devops-only: true
### A regex to exclude files from linting
### defaults to empty
filter-regex-exclude: .*compose-sample-3/html/.*,.*dockerfile-sample-5/.*