Post Linter Report #27
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: Post Linter Report | |
| on: | |
| workflow_run: | |
| workflows: ["Lint"] | |
| types: | |
| - completed | |
| permissions: | |
| pull-requests: write | |
| jobs: | |
| comment: | |
| runs-on: ubuntu-latest | |
| if: github.event.workflow_run.event == 'pull_request' | |
| steps: | |
| - name: Download linter report artifact | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: linter-report | |
| run-id: ${{ github.event.workflow_run.id }} | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Post Linter Report to PR | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_REPOSITORY: ${{ github.repository }} | |
| LINTER_REPORT_PATH: ./linter-report.txt | |
| PR_NUMBER_PATH: ./pr-number.txt | |
| run: | | |
| npm install --no-save github:AdobeDocs/adp-devsite-scripts | |
| node node_modules/adp-devsite-scripts/linter-bot/postLinterReport.js |