Skip to content

Commit d1351e4

Browse files
committed
ci: update checkout action configuration in ci workflow
- add 'ref' parameter to the checkout action - set 'ref' to use either the head ref for pull requests or the ref name for other events
1 parent 2d6f5d4 commit d1351e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
uses: actions/checkout@v4
5858
with:
5959
fetch-depth: 0
60+
ref: ${{ github.head_ref || github.ref_name }}
6061

6162
- name: Setup
6263
uses: ./.github/actions/setup

0 commit comments

Comments
 (0)