Skip to content

Commit 5468410

Browse files
committed
minimiez-checkout
1 parent f3002cc commit 5468410

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

.github/workflows/pre-build.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,6 @@ jobs:
2626
- uses: actions/checkout@v4
2727
with: { fetch-depth: 1 }
2828

29-
# For normal PR jobs, just checkout the base_ref the PR is against
30-
- uses: actions/checkout@v4
31-
with:
32-
ref: ${{ github.base_ref }}
33-
if: ${{ !(github.event_name == 'push' && github.repository != 'com-lihaoyi/mill') }}
34-
35-
# For fork push jobs, first checkout the version being pushed, then look for the
36-
# merge-base where the current version forks off from the upstream main branch
37-
- uses: actions/checkout@v4
38-
with: { fetch-depth: 0 }
39-
4029
- run: |
4130
git fetch https://github.com/com-lihaoyi/mill main
4231
MERGE_BASE=$(git merge-base FETCH_HEAD HEAD)
@@ -45,6 +34,7 @@ jobs:
4534
4635
git checkout $MERGE_BASE
4736
shell: bash
37+
if: ${{ github.event_name == 'push' && github.repository != 'com-lihaoyi/mill' }}
4838
4939
- run: echo temurin:${{ inputs.java-version }} > .mill-jvm-version
5040

0 commit comments

Comments
 (0)