Skip to content

Commit 35ad150

Browse files
Create main.yml
1 parent d83d0ae commit 35ad150

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
# template source: https://github.com/bretfisher/super-linter-workflow/blob/main/templates/call-super-linter.yaml
3+
name: Lint Code Base
4+
5+
on:
6+
# Run anytime a PR is merged to main or a direct push to main
7+
push:
8+
branches: [main]
9+
# Run on any push to a PR branch
10+
pull_request:
11+
12+
# Cancel any previously-started, yet still active runs of this workflow on the same branch
13+
concurrency:
14+
group: ${{ github.ref }}-${{ github.workflow }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
call-super-linter:
19+
name: Call Super-Linter
20+
21+
permissions:
22+
contents: read # Allows cloning of the repo to lint
23+
statuses: write # Allows setting custom statuses in the repo
24+
25+
### Using Reusable Workflows to call an external workflow
26+
### For further customization, update the URI to point to your own reusable linter repository
27+
28+
uses: bretfisher/super-linter-workflow/.github/workflows/reusable-super-linter.yaml@main
29+
30+
### Optional settings
31+
with:
32+
### Set to true if you want to limit linting to DevOps-related files
33+
devops-only: false
34+
35+
### Provide a regex pattern to exclude certain files from linting
36+
filter-regex-exclude: html/.*
37+
38+
### Specify any additional environment variables as needed
39+
env:
40+
DEFAULT_BRANCH: main
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)