Skip to content

Commit

Permalink
#175 add default branch override
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelsam committed Feb 5, 2025
1 parent c4eb8b1 commit b99b091
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/lint-workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: lint workflows
on:
workflow_call:
inputs:
default-branch:
default: main
description: "Default branch of the repository"
required: false
type: string
validate-all-codebase:
default: false
description: "Lint all files or only modified: true/false."
Expand Down Expand Up @@ -49,8 +54,8 @@ jobs:
- name: lint code base
uses: super-linter/super-linter@v7.2.1
env:
DEFAULT_BRANCH: main
DEFAULT_BRANCH: ${{ inputs.default-branch }}
FILTER_REGEX_INCLUDE: .*.github/workflows/.*
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# only lint new and modified files
VALIDATE_ALL_CODEBASE: false
VALIDATE_ALL_CODEBASE: ${{ inputs.validate-all-codebase }}

0 comments on commit b99b091

Please sign in to comment.