Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Create main.yml
  • Loading branch information
nerdy-tech-com-gitub authored Oct 28, 2024
commit 1525f7498512cd7ffacb25d67a51b70d3d748117
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
# template source: https://github.com/bretfisher/super-linter-workflow/blob/main/templates/call-super-linter.yaml
name: Lint Code Base

on:
# Run anytime a PR is merged to main or a direct push to main
push:
branches: [main]
# Run on any push to a PR branch
pull_request:

# Cancel any previously-started, yet still active runs of this workflow on the same branch
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
call-super-linter:
name: Call Super-Linter

permissions:
contents: read # Allows cloning of the repo to lint
statuses: write # Allows setting custom statuses in the repo

### Using Reusable Workflows to call an external workflow
### For further customization, update the URI to point to your own reusable linter repository

uses: bretfisher/super-linter-workflow/.github/workflows/reusable-super-linter.yaml@main

### Optional settings
with:
### Set to true if you want to limit linting to DevOps-related files
devops-only: false

### Provide a regex pattern to exclude certain files from linting
filter-regex-exclude: html/.*

### Specify any additional environment variables as needed
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading