diff --git a/.github/workflows/superlinter.yml b/.github/workflows/superlinter.yml index fdc5337..204ddaa 100644 --- a/.github/workflows/superlinter.yml +++ b/.github/workflows/superlinter.yml @@ -16,14 +16,18 @@ jobs: # Checks out a copy of your repository on the ubuntu-latest machine - name: Checkout code uses: actions/checkout@v4 - + - name: Get Branch Name + run: | + branchname=$(git rev-parse --abbrev-ref HEAD) + echo "branchname=$branchname" >> "$GITHUB_ENV" # Runs the Super-Linter action - name: Run Super-Linter - uses: github/super-linter@v6 + uses: github/super-linter@v7 env: + DEFAULT_BRANCH: ${{ env.branchname }} + FILTER_REGEX_EXCLUDE: (.*sh|.git/.*|.Doc/Images/.*|.Tests/.*/Logs/.*|.Tests/.*/testdata/.*) VALIDATE_YAML: true VALIDATE_MARKDOWN: true VALIDATE_PYTHON_ISORT: true VALIDATE_PYTHON_PYLINT: true - DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}