Skip to content

Commit c2ca26f

Browse files
committed
Backport #1893 to 1.21.3
1 parent 41791a0 commit c2ca26f

File tree

3 files changed

+3
-36
lines changed

3 files changed

+3
-36
lines changed

Diff for: .github/workflows/build-prs.yml

+1-16
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout repository
23-
uses: actions/checkout@v4
24-
with:
25-
fetch-depth: 1000
26-
fetch-tags: true
27-
28-
# GradleUtils will append the branch name to the version,
29-
# but for that we need a properly checked out branch
30-
- name: Create branch for commit (PR)
31-
if: ${{ github.event_name == 'pull_request' }}
32-
run:
33-
git switch -C pr-${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.ref }}
34-
35-
- name: Create branch for commit
36-
if: ${{ github.event_name != 'pull_request' }}
37-
run:
38-
git switch -C ${{ github.ref_name }}
23+
uses: neoforged/actions/checkout@main
3924

4025
- name: Setup JDK 21
4126
uses: neoforged/actions/setup-java@main

Diff for: .github/workflows/check-local-changes.yml

+1-10
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v4
17-
with:
18-
fetch-depth: 1000
19-
fetch-tags: true
20-
21-
# GradleUtils will append the branch name to the version,
22-
# but for that we need a properly checked out branch
23-
- name: Create branch for commit
24-
run:
25-
git switch -C pr-${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.ref }}
16+
uses: neoforged/actions/checkout@main
2617

2718
- name: Setup JDK 21
2819
uses: neoforged/actions/setup-java@main

Diff for: .github/workflows/test-prs.yml

+1-10
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v4
21-
with:
22-
fetch-depth: 1000
23-
fetch-tags: true
24-
25-
# GradleUtils will append the branch name to the version,
26-
# but for that we need a properly checked out branch
27-
- name: Create branch for commit
28-
run:
29-
git switch -C pr-${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.ref }}
20+
uses: neoforged/actions/checkout@main
3021

3122
- name: Setup JDK 21
3223
uses: neoforged/actions/setup-java@main

0 commit comments

Comments
 (0)