Skip to content

Commit

Permalink
Merge branch 'main' into pr-review-lint-test
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 committed Aug 2, 2023
2 parents c49bc85 + d115bef commit 4062f0d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/pr-review-lint-companion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ jobs:
- name: Unzip what was downloaded
run: |
7z x diff.zip -odiff -bb1
GITHUB_REF=$(cat diff/event.json | jq -r .pull_request.head.ref)
echo "GITHUB_REF=${GITHUB_REF}" >> $GITHUB_ENV
- name: "Checkout PR"
uses: actions/checkout@v3
with:
ref: ${{ env.GITHUB_REF }}
path: content

- name: Setup reviewdog
uses: reviewdog/action-setup@v1
Expand All @@ -68,9 +76,10 @@ jobs:
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
export GITHUB_EVENT_PATH="diff/event.json"
export GITHUB_EVENT_PATH="${{github.workspace}}/diff/event.json"
cd content
reviewdog \
-name="mdn-linter" \
-f=diff \
-f.diff.strip=1 \
-reporter=github-pr-review < "diff/diff"
-reporter=github-pr-review < "${{github.workspace}}/diff/diff"

0 comments on commit 4062f0d

Please sign in to comment.