-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.27 KB
/
mega-linter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
####################################################################
# mega-linter.yml
####################################################################
# Mega Linter Caller Workflow
#
# File: mega-linter.yml
# Version: 1.0
# Author: Ragdata
# Date: 07/07/2024
# License: MIT License
# Copyright: Copyright © 2024 Darren (Ragdata) Poulton
####################################################################
name: MegaLinter
on:
# Trigger whenever files are pushed to any branch of the repo
push: null
# Trigger whenever a pull_request is raised on the master branch
pull_request:
branches:
- master
# Allows for manual triggering via the Actions tab
workflow_dispatch:
jobs:
call_reusable_workflow:
permissions:
contents: write
issues: write
pull-requests: write
uses: ragdata/reusable-workflows/.github/workflows/mega-linter.yml@master
with:
megalinter_config: https://raw.githubusercontent.com/ragdata/reusable-workflows/master/.mega-linter.yml
linter_rules_path: https://raw.githubusercontent.com/ragdata/reusable-workflows/master/.github/linters
secrets:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}