forked from AdobeDocs/commerce-php
-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (29 loc) · 906 Bytes
/
post-lint-comment.yml
File metadata and controls
32 lines (29 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
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