Spaces:
Running
Running
alamin655
commited on
Update mega-linter.yml
Browse files
.github/workflows/mega-linter.yml
CHANGED
|
@@ -4,12 +4,12 @@
|
|
| 4 |
name: MegaLinter
|
| 5 |
|
| 6 |
on:
|
| 7 |
-
# Trigger mega-linter at every push. Action will also be visible from Pull Requests to
|
| 8 |
push: # Comment this line to trigger action only on pull-requests (not recommended if you don't pay for GH Actions)
|
| 9 |
pull_request:
|
| 10 |
branches: [rolling]
|
| 11 |
|
| 12 |
-
env: # Comment env block if you
|
| 13 |
# Apply linter fixes configuration
|
| 14 |
APPLY_FIXES: all # When active, APPLY_FIXES must also be defined as environment variable (in github/workflows/mega-linter.yml or other CI tool)
|
| 15 |
APPLY_FIXES_EVENT: pull_request # Decide which event triggers application of fixes in a commit or a PR (pull_request, push, all)
|
|
@@ -35,7 +35,6 @@ jobs:
|
|
| 35 |
uses: actions/checkout@v3
|
| 36 |
with:
|
| 37 |
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
|
| 38 |
-
fetch-depth: 0 # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to improve performances
|
| 39 |
|
| 40 |
# MegaLinter
|
| 41 |
- name: MegaLinter
|
|
@@ -46,10 +45,9 @@ jobs:
|
|
| 46 |
env:
|
| 47 |
# All available variables are described in documentation
|
| 48 |
# https://megalinter.io/configuration/
|
| 49 |
-
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
| 50 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
| 51 |
-
# ADD YOUR CUSTOM ENV VARIABLES HERE
|
| 52 |
-
# DISABLE: COPYPASTE,SPELL # Uncomment to disable copy-paste and spell checks
|
| 53 |
|
| 54 |
# Upload MegaLinter artifacts
|
| 55 |
- name: Archive production artifacts
|
|
|
|
| 4 |
name: MegaLinter
|
| 5 |
|
| 6 |
on:
|
| 7 |
+
# Trigger mega-linter at every push. Action will also be visible from Pull Requests to rolling
|
| 8 |
push: # Comment this line to trigger action only on pull-requests (not recommended if you don't pay for GH Actions)
|
| 9 |
pull_request:
|
| 10 |
branches: [rolling]
|
| 11 |
|
| 12 |
+
env: # Comment env block if you do not want to apply fixes
|
| 13 |
# Apply linter fixes configuration
|
| 14 |
APPLY_FIXES: all # When active, APPLY_FIXES must also be defined as environment variable (in github/workflows/mega-linter.yml or other CI tool)
|
| 15 |
APPLY_FIXES_EVENT: pull_request # Decide which event triggers application of fixes in a commit or a PR (pull_request, push, all)
|
|
|
|
| 35 |
uses: actions/checkout@v3
|
| 36 |
with:
|
| 37 |
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
|
|
|
|
| 38 |
|
| 39 |
# MegaLinter
|
| 40 |
- name: MegaLinter
|
|
|
|
| 45 |
env:
|
| 46 |
# All available variables are described in documentation
|
| 47 |
# https://megalinter.io/configuration/
|
| 48 |
+
VALIDATE_ALL_CODEBASE: true # Set ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} to validate only diff with main branch
|
| 49 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
| 50 |
+
# ADD YOUR CUSTOM ENV VARIABLES HERE TO OVERRIDE VALUES OF .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY
|
|
|
|
| 51 |
|
| 52 |
# Upload MegaLinter artifacts
|
| 53 |
- name: Archive production artifacts
|