Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/hygiene.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,18 @@ jobs:

echo "lint=true" >> $GITHUB_OUTPUT

- name: Checkout
- name: Checkout PR head
if: ${{ steps.check.outputs.lint == 'true' }}
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

# Check out both the base and head refs so changeset status can compare
# against the base branch
- name: Checkout base ref
if: ${{ steps.check.outputs.lint == 'true' }}
run: git fetch origin ${{ github.base_ref }} && git checkout ${{ github.base_ref }}
- name: Checkout head ref
- name: Fetch base ref
if: ${{ steps.check.outputs.lint == 'true' }}
run: git fetch origin ${{ github.head_ref }} && git checkout ${{ github.head_ref }}
run: git fetch origin ${{ github.base_ref }}

- name: Setup Mise
if: ${{ steps.check.outputs.lint == 'true' }}
Expand Down