Skip to content

Commit

Permalink
MegaLinter: Add missing step for artifact upload (#6982)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vkucera authored Jul 30, 2024
1 parent 30b9e1c commit 26f8585
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ jobs:
VALIDATE_ALL_CODEBASE: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Upload MegaLinter artifacts
- name: Archive production artifacts
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: MegaLinter reports
path: |
megalinter-reports
mega-linter.log
# Create or delete the cleanup branch
- name: Update cleanup branch
if: ${{ github.event.repository.owner.login == 'AliceO2Group' }}
Expand Down

0 comments on commit 26f8585

Please sign in to comment.