Skip to content

Commit 6380894

Browse files
committed
Fix CICD
1 parent 7f8a76c commit 6380894

File tree

8 files changed

+32
-98
lines changed

8 files changed

+32
-98
lines changed

.github/actions/build_setup/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ runs:
3030
notifications
3131
jdks
3232
wrapper
33+
34+
- name: Grant execute permission for gradlew
35+
shell: bash
36+
run: chmod +x gradlew

.github/workflows/build_and_test.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,12 @@ jobs:
3131
- name: Checkout Repository
3232
uses: actions/checkout@v4
3333

34-
- name: Apply patch to settings.gradle
35-
run: |
36-
if [ -f settings.gradle.patch ]; then
37-
patch -p0 < settings.gradle.patch
38-
fi
39-
4034
- name: Apply patch to gradle.properties
4135
run: sed -i 's/debug_all = false/debug_all = true/g' gradle.properties
4236

4337
- name: Setup Build
4438
uses: ./.github/actions/build_setup
4539

46-
- name: Grant execute permission for gradlew
47-
run: chmod +x gradlew
48-
4940
- name: Compile the mod
5041
run: ./gradlew --info --scan assemble
5142

@@ -64,7 +55,7 @@ jobs:
6455
if: ${{ failure() && steps.build_mod.conclusion == 'failure' && github.event_name == 'pull_request' && !github.event.pull_request.draft }}
6556
run: |
6657
git reset --hard
67-
git checkout "${PR_BRANCH}"
58+
git checkout "${github.ref_name}"
6859
./gradlew --info spotlessApply || exit 1
6960
git diff --exit-code && exit 1
7061
git config user.name "GitHub Actions"
@@ -74,15 +65,14 @@ jobs:
7465
git push --force-with-lease origin "${FIXED_BRANCH}"
7566
gh pr create \
7667
--head "${FIXED_BRANCH}" \
77-
--base "${PR_BRANCH}" \
68+
--base "${github.ref_name}" \
7869
--title "Spotless apply for branch ${{ github.event.pull_request.head.ref }} for #${{ github.event.pull_request.number }}" \
7970
--body "Automatic spotless apply to fix formatting errors, applies to PR #${{ github.event.pull_request.number }}" \
8071
2>&1 | tee pr-message.log || true
81-
gh pr comment "${PR_BRANCH}" -F pr-message.log || true
72+
gh pr comment "${github.ref_name}" -F pr-message.log || true
8273
shell: bash # ensures set -eo pipefail
8374
env:
8475
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85-
PR_BRANCH: ${{ github.head_ref }}
8676
FIXED_BRANCH: ${{ github.head_ref }}-spotless-fixes
8777

8878
- name: Run server for ${{ inputs.timeout }} seconds

.github/workflows/buildscript-maintenance.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/format_java.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,12 @@ jobs:
3131
- name: Setup Build
3232
uses: ./.github/actions/build_setup
3333

34-
- name: Grant execute permission for gradlew
35-
run: chmod +x gradlew
36-
3734
- name: Run Spotless Formatting Check with Gradle
3835
id: build
3936
run: ./gradlew --info spotlessCheck
4037

4138
- name: Attempt to make a PR fixing spotless errors
42-
if: failure()
39+
if: failure() && steps.build.conclusion == 'failure'
4340
run: |
4441
git reset --hard
4542
git checkout "${PR_BRANCH}"

.github/workflows/publish.yml

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ env:
2222
# Version of the mod
2323
FULL_VERSION: "${{ github.event.inputs.version }}-${{ github.event.inputs.release_type }}"
2424
# type of release
25-
NAME: "GTWoodProcessing"
25+
NAME: "GTExpertCore"
2626

2727
# Curseforge and Modrinth project IDs
28-
CURSEFORGE_PROJECT_ID: "1093753"
29-
MODRINTH_PROJECT_ID: "LRBGeIQP"
28+
CURSEFORGE_PROJECT_ID: "851103"
29+
MODRINTH_PROJECT_ID: "ipueNiWG"
3030

3131
concurrency:
3232
group: publish-${{ github.head_ref || github.ref }}
@@ -65,9 +65,6 @@ jobs:
6565
- name: Setup Build
6666
uses: ./.github/actions/build_setup
6767

68-
- name: Grant execute permission for gradlew
69-
run: chmod +x gradlew
70-
7168
- name: Build Project
7269
run: ./gradlew --info build
7370

@@ -82,32 +79,36 @@ jobs:
8279
modrinth-id: ${{ env.MODRINTH_PROJECT_ID }}
8380
modrinth-token: "${{ secrets.MODRINTH_API_KEY }}"
8481
modrinth-dependencies: |
82+
G1ckZuWK(required)
8583
tULldUx4(required)
84+
tZiutdLG(required)
8685
curseforge-id: ${{ env.CURSEFORGE_PROJECT_ID }}
8786
curseforge-token: "${{ secrets.CURSEFORGE_API_KEY }}"
8887
curseforge-dependencies: |
88+
mixin-booter(required)
8989
gregtech-ce-unofficial(required)
90+
gregicality-multiblocks(required)
91+
implosionnobomb(recommended)
92+
ae2-extended-life(recommended)
93+
ae-additions-extra-cells-2-fork(recommended)
94+
nae2(recommended)
95+
ender-io-base(recommended)
96+
ender-io-machines(recommended)
97+
ender-io-endergy(recommended)
98+
ender-io-conduits(recommended)
99+
ender-io-ae2-conduits(recommended)
90100
gregtech-food-option(recommended)
101+
chisel(recommended)
102+
extracpus(recommended)
103+
draconic-evolution(recommended)
104+
draconicadditions(recommended)
105+
project-red-illumination(recommended)
106+
avaritia-1-1x-unofficial(recommended)
91107
thaumcraft(recommended)
92108
forestry(recommended)
109+
gendustry(recommended)
93110
binnies-mods-patched(recommended)
94-
advanced-rocketry(recommended)
95-
project-vibrant-journeys(recommended)
96-
plants(recommended)
97-
extra-utilities(recommended)
98-
integrated-dynamics(recommended)
99-
random-things(recommended)
100-
rustic(recommended)
101-
mystical-world(recommended)
102-
roots(recommended)
103-
biomes-o-plenty(recommended)
104-
ice-and-fire-dragons(recommended)
105-
wizardry-mod(recommended)
106-
traverse-reforged(recommended)
107-
nether-update-backport(recommended)
108-
the-twilight-forest(recommended)
109-
botania(recommended)
110-
natura(recommended)
111+
ulv-covers(incompatible)
111112
files: |
112113
build/libs/!(*-@(dev|sources|javadoc)).jar
113114
build/libs/*-@(sources).jar

.github/workflows/test_java.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,11 @@ jobs:
2222
- name: Checkout Repository
2323
uses: actions/checkout@v4
2424

25-
- name: Apply patch to settings.gradle
26-
run: |
27-
if [ -f settings.gradle.patch ]; then
28-
patch -p0 < settings.gradle.patch
29-
fi
30-
3125
- name: Apply patch to build.gradle
3226
run: sed -i 's/debug_all = false/debug_all = true/g' gradle.properties
3327

3428
- name: Setup Build
3529
uses: ./.github/actions/build_setup
3630

37-
- name: Grant execute permission for gradlew
38-
run: chmod +x gradlew
39-
4031
- name: Run Tests with Gradle
4132
run: ./gradlew --info --scan test

.github/workflows/update_buildscript.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ jobs:
2424
- name: Setup Build
2525
uses: ./.github/actions/build_setup
2626

27-
- name: Grant execute permission for gradlew
28-
run: chmod +x gradlew
29-
3027
- name: Run Buildscript Updater
3128
run: ./gradlew --info updateBuildScript
3229

.github/workflows/update_gradle_cache.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,5 @@ jobs:
2626
with:
2727
update-cache: true
2828

29-
- name: Grant execute permission for gradlew
30-
run: chmod +x gradlew
31-
3229
- name: Build Project with Gradle
3330
run: ./gradlew --info assemble

0 commit comments

Comments
 (0)