Merge pull request #10 from egibs/really-fix-json #24
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
| name: Malcontent Analysis on Push | |
| on: | |
| push: | |
| branches: [main, develop] | |
| permissions: | |
| contents: read | |
| jobs: | |
| malcontent: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Checkout code | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| fetch-depth: 2 # Need at least 2 commits for HEAD~1 | |
| - name: Run Malcontent Diff | |
| uses: ./ # In actual usage, this would be: imjasonh/malcontent-action@v1 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| # Will automatically use HEAD vs HEAD~1 for diff | |
| fail-on-increase: true | |
| # No PR to comment on, results will go to workflow summary |