Skip to content

Commit 119c496

Browse files
committed
updated actions
1 parent f9eb5bf commit 119c496

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
path: versions/*/build/libs/
5959

6060
summary:
61-
runs-on: ubuntu-22.04
61+
runs-on: ubuntu-latest
6262
needs:
6363
- build
6464

.github/workflows/release.yml

+7-15
Original file line numberDiff line numberDiff line change
@@ -118,25 +118,17 @@ jobs:
118118
119119
- name: Read common properties
120120
id: properties_g
121-
uses: christian-draeger/read-properties@1.1.1
121+
uses: BrycensRanch/read-properties-action@v1
122122
with:
123-
path: gradle.properties
124-
properties: 'mod_name mod_version'
123+
file: gradle.properties
124+
all: true
125125

126126
- name: Read version-specific properties
127127
id: properties_v
128-
uses: christian-draeger/read-properties@1.1.1
128+
uses: BrycensRanch/read-properties-action@v1
129129
with:
130-
path: ${{ format('versions/{0}/gradle.properties', matrix.subproject) }}
131-
properties: 'minecraft_version game_versions'
132-
133-
- name: Fix game version
134-
id: game_versions
135-
run: |
136-
# Fixed \n in game_versions isn't parsed by christian-draeger/read-properties as a line separator
137-
echo 'value<<EOF' >> $GITHUB_OUTPUT
138-
echo -e "${{ steps.properties_v.outputs.game_versions }}" >> $GITHUB_OUTPUT
139-
echo 'EOF' >> $GITHUB_OUTPUT
130+
file: ${{ format('versions/{0}/gradle.properties', matrix.subproject) }}
131+
all: true
140132

141133
- name: Prepare file information
142134
id: file_info
@@ -194,7 +186,7 @@ jobs:
194186
version-type: release
195187

196188
loaders: fabric
197-
game-versions: ${{ steps.game_versions.outputs.value }}
189+
game-versions: ${{ steps.properties_v.outputs.game_versions }}
198190
game-version-filter: any
199191
dependencies: |- # declare the dependencies explicitly, so mc-publish won't try to load from fabric.mod.json
200192
carpet(required)

0 commit comments

Comments
 (0)