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 6a061f5Copy full SHA for 6a061f5
.github/workflows/commit.yml
@@ -11,14 +11,10 @@ jobs:
11
commitlint:
12
runs-on: ubuntu-latest
13
steps:
14
- - name: Checkout "main" branch
15
- uses: actions/checkout@v4
16
- with:
17
- fetch-depth: 0
18
- ref: ${{ github.event.pull_request.base.ref }}
19
-
20
- - name: Checkout the current pull request branch
21
- run: git checkout ${{ github.event.pull_request.head.ref }}
+ - name: Checkout PR and "main" branches
+ run: |
+ git fetch --no-tags --depth=1 origin main +refs/pull/${{ github.event.pull_request.number }}/head:${{ github.event.pull_request.head.ref }}
+ git checkout ${{ github.event.pull_request.head.ref }}
22
23
- name: Install dependencies
24
run: npm ci
0 commit comments