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 + fa9b0c2 commit 66ffca2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .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,7 +76,8 @@ 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 \
Expand Down

0 comments on commit 66ffca2

Please sign in to comment.