chore(release): v0.1.32 #117
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This file is @generated by <https://github.com/liblaf/copier-shared>. | |
| # DO NOT EDIT! | |
| # ref: <https://github.com/oxsecurity/megalinter/blob/main/mega-linter-runner/generators/mega-linter/templates/mega-linter.yml> | |
| # ref: <https://megalinter.io> | |
| name: Shared / MegaLinter | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| FORCE_COLOR: 1 | |
| jobs: | |
| mega-linter: | |
| name: MegaLinter | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: mega-linter | |
| deployment: false | |
| outputs: | |
| pull-request-url: ${{ steps.pr.outputs.pull-request-url }} | |
| steps: | |
| - id: auth | |
| name: Auth | |
| uses: liblaf/actions/auth@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1 | |
| with: | |
| app-id: ${{ vars.APP_ID }} | |
| private-key: ${{ secrets.PRIVATE_KEY }} | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - id: lint | |
| name: MegaLinter | |
| uses: liblaf/megalinter-custom-flavor-all@4c245a0bdb312d24c66108433d4d701fb0875746 # main | |
| env: | |
| GITHUB_TOKEN: ${{ steps.auth.outputs.token }} | |
| MEGALINTER_CONFIG: https://raw.githubusercontent.com/liblaf/megalinter-custom-flavor-all/refs/heads/main/.mega-linter.yml | |
| - if: success() || failure() | |
| name: Upload reports | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 | |
| 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' | |
| - id: pr | |
| if: steps.lint.outputs.has-updated-sources == 1 && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) | |
| name: Create PR | |
| uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8 | |
| with: | |
| token: ${{ steps.auth.outputs.token }} | |
| commit-message: "chore(mega-linter): apply linters automatic fixes" | |
| branch: mega-linter/${{ github.head_ref || github.ref_name }} | |
| delete-branch: true | |
| sign-commits: true | |
| title: "chore(mega-linter): apply linters automatic fixes" | |
| body-path: ${{ runner.temp }}/megalinter-report.md | |
| labels: |- | |
| automerge | |
| mega-linter | |
| assignees: ${{ github.repository_owner }} | |
| approve: | |
| name: Approve | |
| permissions: | |
| pull-requests: write | |
| needs: | |
| - mega-linter | |
| if: needs.mega-linter.outputs.pull-request-url | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: approve | |
| deployment: false | |
| steps: | |
| - id: auth | |
| name: Auth | |
| uses: liblaf/actions/auth@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1 | |
| with: | |
| app-id: ${{ vars.APP_ID }} | |
| private-key: ${{ secrets.PRIVATE_KEY }} | |
| - name: Approve | |
| uses: liblaf/actions/approve@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1 | |
| with: | |
| approve-token: ${{ steps.auth.outputs.token }} | |
| pull: ${{ needs.mega-linter.outputs.pull-request-url }} |