Skip to content

Commit

Permalink
Fix Mega-Linter workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosev committed Oct 14, 2021
1 parent 50f445b commit a02b743
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
11 changes: 7 additions & 4 deletions .github/workflows/docusaurus.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Build Docusaurus
---
# Docusaurus GitHub Action configuration file
# More info at https://docusaurus.io/docs/deployment
name: Docusaurus-Build

on:
pull_request:
Expand All @@ -18,7 +21,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: "12.x"
- name: Test Build
run: |
if [ -e yarn.lock ]; then
Expand All @@ -36,7 +39,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: "12.x"
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
Expand All @@ -54,4 +57,4 @@ jobs:
else
npm i
fi
npm run deploy
npm run deploy
1 change: 1 addition & 0 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name: Mega-Linter
on:
# Trigger mega-linter at every push. Action will also be visible from Pull Requests to master
push: # Comment this line to trigger action only on pull-requests (not recommended if you don't pay for GH Actions)
branches: [main]
pull_request:
branches: [main]

Expand Down
7 changes: 4 additions & 3 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Configuration file for Mega-Linter
# See all available variables at https://nvuillam.github.io/mega-linter/configuration/ and in linters documentation

APPLY_FIXES: none # all, none, or list of linter keys
APPLY_FIXES: all # all, none, or list of linter keys
DEFAULT_BRANCH: main # Usually master or main
# ENABLE: # If you use ENABLE variable, all other languages/formats/tooling-formats will be disabled by default
# ENABLE_LINTERS: # If you use ENABLE_LINTERS variable, all other linters will be disabled by default
# DISABLE:
# - COPYPASTE # Uncomment to enable checks of abusive copy-pastes
# - SPELL # Uncomment to enable checks of spelling mistakes # - SPELL # Uncomment to disable checks of spelling mistakes
# - COPYPASTE # Uncomment to enable checks of abusive copy-pastes
# - SPELL # Uncomment to enable checks of spelling mistakes # - SPELL # Uncomment to disable checks of spelling mistakes
DISABLE_LINTERS:
- JSON_V8R
- MARKDOWN_MARKDOWN_TABLE_FORMATTER
Expand All @@ -18,3 +18,4 @@ DISABLE:
- YAML
SHOW_ELAPSED_TIME: true
FILEIO_REPORTER: false
EXCLUDED_DIRECTORIES: [.docusaurus, build, node_modules]

0 comments on commit a02b743

Please sign in to comment.