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 14a732dCopy full SHA for 14a732d
.github/workflows/commit.yml
@@ -11,14 +11,16 @@ 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 }}
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 origin main
22
+ git fetch --no-tags origin +refs/pull/${{ github.event.pull_request.number }}/head:${{ github.event.pull_request.head.ref }}
23
+ git checkout ${{ github.event.pull_request.head.ref }}
24
25
- name: Install dependencies
26
run: npm ci
0 commit comments