fixes and adding gha concurrency
This commit is contained in:
@@ -3,35 +3,42 @@
|
||||
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 # clone the repo to lint
|
||||
statuses: write #read/write to repo custom statuses
|
||||
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
|
||||
|
||||
#FIXME: customize uri to point to your own forked super-linter repository
|
||||
# FIXME: customize uri to point to your own reusable linter repository
|
||||
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: false
|
||||
|
||||
|
||||
### A regex to exclude files from linting
|
||||
### defaults to empty
|
||||
# filter-regex-exclude: html/.*
|
||||
# filter-regex-exclude: html/.*
|
||||
Reference in New Issue
Block a user