Skip to content

Commit

Permalink
dev: sparse-checkout for megalinter workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalli-johnny committed Oct 19, 2023
1 parent e7bf06a commit a1012b0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/megalinter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ name: MegaLinter
on:
workflow_dispatch:
pull_request:
branches: [ main ]
branches: [main]
push:
branches: [ main ]
branches: [main]

# Run Linters in parallel
# Cancel running job if new job is triggered
Expand All @@ -30,9 +30,11 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4
with:
token: "${{ secrets.PAT || secrets.GITHUB_TOKEN }}"
fetch-depth: 0
sparse-checkout: |
docs
overrides
- run: echo "🐙 ${{ github.repository }} repository was cloned to the runner."

# MegaLinter Configuration
- name: MegaLinter Run
id: ml
Expand Down

0 comments on commit a1012b0

Please sign in to comment.