We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bced1c commit d690fd0Copy full SHA for d690fd0
.github/workflows/commit.yml
@@ -11,14 +11,15 @@ jobs:
11
commitlint:
12
runs-on: ubuntu-latest
13
steps:
14
- - name: Checkout "main" branch
+ - name: Checkout repository
15
uses: actions/checkout@v4
16
with:
17
- fetch-depth: 0
18
- ref: ${{ github.event.pull_request.base.ref }}
+ fetch-depth: 1
19
20
- - name: Checkout the current pull request branch
21
- run: git checkout ${{ github.event.pull_request.head.ref }}
+ - name: Checkout PR branch
+ run: |
+ git fetch --no-tags --depth=1 origin main +refs/pull/${{ github.event.pull_request.number }}/head:${{ github.event.pull_request.head.ref }}
22
+ git checkout ${{ github.event.pull_request.head.ref }}
23
24
- name: Install dependencies
25
run: npm ci
0 commit comments