Skip to content

Commit f67d8ef

Browse files
authored
Merge pull request #2964 from Multiverse/actions-better
2 parents fdb9125 + 70132c0 commit f67d8ef

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed

.github/workflows/call.github_release.yml

-6
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ jobs:
3030
release_created: ${{ steps.release.outputs.release_created }}
3131
tag_name: ${{ steps.release.outputs.tag_name }}
3232
steps:
33-
- name: Echo inputs
34-
run: |
35-
echo "release_mode: ${{ inputs.release_mode }}"
36-
echo "version_bump: ${{ inputs.version_bump }}"
37-
echo "promote_from: ${{ inputs.promote_from }}"
38-
3933
- uses: actions/checkout@v3
4034
with:
4135
ref: ${{ inputs.promote_from }}

.github/workflows/call.platform_uploads.yml

+9-14
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,18 @@ jobs:
4242
file: multiverse-core-${{ steps.release-info.outputs.tag_name }}.jar
4343

4444
- name: Parse release type
45+
id: parse-release-type
4546
run: |
4647
if [[ "${{ steps.release-info.outputs.prerelease }}" == "true" ]]; then
47-
echo Setting RELEASE_TYPE to Beta
48-
echo "RELEASE_TYPE=Beta" >> $GITHUB_ENV
48+
echo Setting release_type to Beta
49+
echo "release_type=Beta" >> $GITHUB_OUTPUT
4950
else
50-
echo Setting RELEASE_TYPE to Release
51-
echo "RELEASE_TYPE=Release" >> $GITHUB_ENV
51+
echo Setting release_type to Release
52+
echo "release_type=Release" >> $GITHUB_OUTPUT
5253
fi
5354
54-
- name: echo inputs
55-
run: |
56-
echo "upload_modrinth: ${{ inputs.upload_modrinth }}"
57-
echo "upload_dbo: ${{ inputs.upload_dbo }}"
58-
echo "RELEASE_TYPE: ${{ env.RELEASE_TYPE }}"
59-
6055
- name: Upload to Modrinth
61-
if: inputs.upload_modrinth == 'true'
56+
if: ${{ !cancelled() || inputs.upload_modrinth == 'true' }}
6257
uses: benwoo1110/modrinth-upload-action@v1
6358
with:
6459
api_token: ${{ secrets.MODRINTH_TOKEN }}
@@ -68,11 +63,11 @@ jobs:
6863
name: ${{ steps.release-info.outputs.tag_name }}
6964
changelog: ${{ steps.release-artifact.outputs.body }}
7065
game_versions: 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17.1, 1.17, 1.16.5, 1.16.4, 1.16.3, 1.16.2, 1.16.1, 1.16, 1.15.2, 1.15.1, 1.15, 1.14.4, 1.14.3, 1.14.2, 1.14.1, 1.14, 1.13.2, 1.13.1, 1.13
71-
version_type: ${{ env.RELEASE_TYPE }}
66+
version_type: ${{ steps.parse-release-type.outputs.release_type }}
7267
loaders: bukkit, spigot, paper
7368

7469
- name: Upload to DBO
75-
if: inputs.upload_dbo == 'true'
70+
if: ${{ !cancelled() || inputs.upload_dbo == 'true' }}
7671
uses: benwoo1110/dbo-upload-action@v1
7772
with:
7873
api_token: ${{ secrets.DBO_UPLOAD_API_TOKEN }}
@@ -81,7 +76,7 @@ jobs:
8176
changelog_type: markdown
8277
display_name: ${{ steps.release-info.outputs.tag_name }}
8378
game_versions: 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17, 1.16, 1.15, 1.14, 1.13
84-
release_type: ${{ env.RELEASE_TYPE }}
79+
release_type: ${{ steps.parse-release-type.outputs.release_type }}
8580
project_relations: >
8681
[
8782
{"slug": "multiverse-portals", "type": "optionalDependency"},

0 commit comments

Comments
 (0)