Skip to content

Commit

Permalink
checks out the PR head sha for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gilzow committed Dec 9, 2024
1 parent 976b943 commit 786f933
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,13 @@ jobs:
site: ['platform', 'upsun']
steps:
- name: Checkout
uses: actions/checkout@v3

uses: actions/checkout@v4
with:
# we need to checkout the PR repo/branch even if it's a fork because the action in the next step needs to
# check the markdown from the PR itself. Plus, we're only running this job if a PR from fork has been approved
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- uses: ./.github/actions/redirection-verification
- name: Vale
uses: errata-ai/vale-action@reviewdog
with:
Expand Down

0 comments on commit 786f933

Please sign in to comment.