Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/copier/.copier-answers.shared.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is @generated by <https://github.com/liblaf/copier-shared>.
# DO NOT EDIT!
# prettier-ignore
_commit: 35a4954
_commit: 1aa0c04
_src_path: gh:liblaf/copier-share
author_email: 30631553+liblaf@users.noreply.github.com
author_name: liblaf
Expand Down
53 changes: 50 additions & 3 deletions .github/workflows/mega-linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,56 @@ on:

jobs:
mega-linter:
name: M
name: MegaLinter
permissions:
contents: write
pull-requests: write
uses: liblaf/copier-shared/.github/workflows/callable-mega-linter.yaml@main
secrets: inherit
environment:
name: MegaLinter
runs-on: ubuntu-latest
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@dist
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v5
- id: lint
name: MegaLinter
uses: liblaf/actions/mega-linter@dist
with:
token: ${{ steps.auth.outputs.token }}
- if: success() || failure()
name: Upload Reports
uses: actions/upload-artifact@v5
with:
name: mega-linter-reports
path: |-
mega-linter.log
megalinter-reports
include-hidden-files: true
- if: success() || failure()
name: Remove MegaLinter Reports
run: |-
cp --target-directory='${{ runner.temp }}' --verbose 'megalinter-reports/megalinter-report.md'
sudo rm --force --recursive 'mega-linter.log' 'megalinter-reports'
- if: steps.lint.outputs.has-updated-sources > 0 && github.ref == 'refs/heads/main'
name: Create PR with Applied Fixes
uses: peter-evans/create-pull-request@v7
with:
commit-message: "chore(mega-linter): apply linters automatic fixes"
branch: mega-linter-fix/${{ github.ref_name }}
sign-commits: true
title: "chore(mega-linter): apply linters automatic fixes"
body-path: ${{ runner.temp }}/megalinter-report.md
labels: auto,automerge
assignees: ${{ github.repository_owner }}
reviewers: ${{ github.repository_owner }}
- if: steps.lint.outputs.has-updated-sources > 0 && github.ref != 'refs/heads/main'
name: Commit and Push Applied Linter Fixes
uses: liblaf/actions/commit@dist
with:
add-options: --verbose --update
message: "chore(mega-linter): apply linters automatic fixes"