diff --git a/.github/workflows/mega-linter.yml b/.github/workflows/mega-linter.yml index 5da280d30b..5c0f5c6b70 100644 --- a/.github/workflows/mega-linter.yml +++ b/.github/workflows/mega-linter.yml @@ -5,15 +5,17 @@ name: MegaLinter on: # Trigger mega-linter at every push. Action will also be visible from Pull Requests to main - push: # Comment this line to trigger action only on pull-requests (not recommended if you don't pay for GH Actions) + push: pull_request: branches: [main] -env: # Comment env block if you don't want to apply fixes +env: # Apply linter fixes configuration - APPLY_FIXES: all # When active, APPLY_FIXES must also be defined as environment variable (in github/workflows/mega-linter.yml or other CI tool) - APPLY_FIXES_EVENT: pull_request # Decide which event triggers application of fixes in a commit or a PR (pull_request, push, all) - APPLY_FIXES_MODE: pull_request # If APPLY_FIXES is used, defines if the fixes are directly committed (commit) or posted in a PR (pull_request) + # When active, APPLY_FIXES must also be defined as environment variable (in github/workflows/mega-linter.yml or other CI tool) + APPLY_FIXES: all + APPLY_FIXES_EVENT: pull_request + # If APPLY_FIXES is used, defines if the fixes are directly committed (commit) or posted in a PR (pull_request) + APPLY_FIXES_MODE: pull_request concurrency: group: ${{ github.ref }}-${{ github.workflow }} @@ -35,7 +37,8 @@ jobs: uses: actions/checkout@v4 with: token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} - fetch-depth: 0 # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to improve performances + # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to improve performances + fetch-depth: 0 # MegaLinter - name: MegaLinter