Skip to content

Commit 26f8585

Browse files
authored
MegaLinter: Add missing step for artifact upload (#6982)
MegaLinter does not create an automatic formatting PR if linters have found errors. The reported error messages are referring to lines in formatted files which can make it difficult to locate the corresponding lines in the committed files. See oxsecurity/megalinter#3399 Formatted files can be uploaded in artifacts, which gives the PR author the possibility to see which lines the linters complain about.
1 parent 30b9e1c commit 26f8585

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/mega-linter.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ jobs:
4747
VALIDATE_ALL_CODEBASE: false
4848
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4949

50+
# Upload MegaLinter artifacts
51+
- name: Archive production artifacts
52+
uses: actions/upload-artifact@v4
53+
if: success() || failure()
54+
with:
55+
name: MegaLinter reports
56+
path: |
57+
megalinter-reports
58+
mega-linter.log
59+
5060
# Create or delete the cleanup branch
5161
- name: Update cleanup branch
5262
if: ${{ github.event.repository.owner.login == 'AliceO2Group' }}

0 commit comments

Comments
 (0)