|
| 1 | +--- |
| 2 | +################################# |
| 3 | +################################# |
| 4 | +## Super Linter GitHub Actions ## |
| 5 | +################################# |
| 6 | +################################# |
| 7 | +name: Lint Code Base |
| 8 | + |
| 9 | +############################# |
| 10 | +# Start the job on all push # |
| 11 | +############################# |
| 12 | +on: |
| 13 | + push: |
| 14 | + branches-ignore: [master, main] |
| 15 | + # Remove the line above to run when pushing to master |
| 16 | + pull_request: |
| 17 | + branches: [master, main] |
| 18 | + |
| 19 | +############### |
| 20 | +# Set the Job # |
| 21 | +############### |
| 22 | +jobs: |
| 23 | + build: |
| 24 | + # Name the Job |
| 25 | + name: Lint Code Base |
| 26 | + # Set the agent to run on |
| 27 | + runs-on: ubuntu-latest |
| 28 | + |
| 29 | + ################## |
| 30 | + # Load all steps # |
| 31 | + ################## |
| 32 | + steps: |
| 33 | + ########################## |
| 34 | + # Checkout the code base # |
| 35 | + ########################## |
| 36 | + - name: Checkout Code |
| 37 | + uses: actions/checkout@v3 |
| 38 | + with: |
| 39 | + # Full git history is needed to get a proper |
| 40 | + # list of changed files within `super-linter` |
| 41 | + fetch-depth: 0 |
| 42 | + |
| 43 | + ######################################### |
| 44 | + # Run Linter against new Markdown files # |
| 45 | + ######################################### |
| 46 | + - name: Lint Markdown |
| 47 | + uses: github/super-linter@v4 |
| 48 | + env: |
| 49 | + VALIDATE_ALL_CODEBASE: false |
| 50 | + DEFAULT_BRANCH: master |
| 51 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 52 | + VALIDATE_MARKDOWN: true |
| 53 | + MARKDOWN_CONFIG_FILE: .markdown-lint.yml |
0 commit comments