Skip to content

Commit a636e1b

Browse files
chore: Update mega-linter workflow to trigger on main branch and exclude draft pull requests
1 parent e22e796 commit a636e1b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/mega-linter.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
# Comment this line to trigger action only on pull-requests
1010
# (not recommended if you don't pay for GH Actions)
1111
push:
12+
branches:
13+
- main
1214

1315
pull_request:
1416
branches:
@@ -39,6 +41,8 @@ jobs:
3941
name: MegaLinter
4042
runs-on: ubuntu-latest
4143

44+
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
45+
4246
# Give the default GITHUB_TOKEN write permission to commit and push, comment
4347
# issues, and post new Pull Requests; remove the ones you do not need
4448
permissions:

0 commit comments

Comments
 (0)