Skip to content

Commit 5f6bb14

Browse files
committed
Bump MegaLinter to v8.4.2
1 parent 0e7a4e3 commit 5f6bb14

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/mega-linter.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
id: ml
4444
# You can override MegaLinter flavor used to have faster performances
4545
# More info at https://megalinter.io/flavors/
46-
uses: oxsecurity/megalinter@v8.3.0
46+
uses: oxsecurity/megalinter@v8.4.2
4747
env:
4848
# All available variables are described in documentation
4949
# https://megalinter.io/configuration/
@@ -69,7 +69,8 @@ jobs:
6969
echo "(${{ env.APPLY_FIXES_EVENT }} == 'all' || ${{ env.APPLY_FIXES_EVENT }} == ${{ github.event_name }}) && ${{ env.APPLY_FIXES_MODE }} == 'pull_request' && (${{ github.event_name }} == 'push' || ${{ github.event.pull_request.head.repo.full_name }} == ${{ github.repository }})"
7070
- name: Create Pull Request with applied fixes
7171
id: cpr
72-
if: (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
72+
if: (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request'
73+
&& (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
7374
uses: peter-evans/create-pull-request@v7
7475
with:
7576
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
@@ -97,10 +98,14 @@ jobs:
9798
# Print the condition
9899
echo "${{ steps.ml.outputs.has_updated_sources }} == 1 && (${{ env.APPLY_FIXES_EVENT }} == 'all' || ${{ env.APPLY_FIXES_EVENT }} == ${{ github.event_name }}) && ${{ env.APPLY_FIXES_MODE }} == 'commit' && ${{ github.ref }} != 'refs/heads/master' && (${{ github.event_name }} == 'push' || ${{ github.event.pull_request.head.repo.full_name }} == ${{ github.repository }})"
99100
- name: Prepare commit
100-
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/master' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
101+
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name)
102+
&& env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/master' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name
103+
== github.repository)
101104
run: sudo chown -Rc $UID .git/
102105
- name: Commit and push applied linter fixes
103-
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/master' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
106+
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name)
107+
&& env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/master' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name
108+
== github.repository)
104109
uses: stefanzweifel/git-auto-commit-action@v5
105110
with:
106111
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}

0 commit comments

Comments
 (0)