Skip to content

Commit

Permalink
ci: Fix supported Minecraft version name step ID in other steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveplays28 committed Apr 14, 2024
1 parent d3eecff commit acd13e5
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 28 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/publish-curseforge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
doNotFailIfNotFound: true

- name: Check if an existing release with the same version exists
if: steps.get_existing_release.outputs.tag_name == v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
if: steps.get_existing_release.outputs.tag_name == v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
run: exit 1

- name: Setup JDK (Temurin 17)
Expand Down Expand Up @@ -72,8 +72,8 @@ jobs:
# CurseForge
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version_name.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
files: |
fabric/build/libs/!(*-@(sources|dev-shadow|javadoc|transformProduction*).jar)
fabric/build/libs/*-@(sources|javadoc).jar
Expand All @@ -88,8 +88,8 @@ jobs:
# CurseForge
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version_name.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
files: |
forge/build/libs/!(*-@(sources|dev-shadow|javadoc|transformProduction*).jar)
forge/build/libs/*-@(sources|javadoc).jar
Expand All @@ -104,8 +104,8 @@ jobs:
# CurseForge
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version_name.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
files: |
neoforge/build/libs/!(*-@(sources|dev-shadow|javadoc|transformProduction*).jar)
neoforge/build/libs/*-@(sources|javadoc).jar
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-github-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
doNotFailIfNotFound: true

- name: Check if an existing release with the same version exists
if: steps.get_existing_release.outputs.tag_name == v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
if: steps.get_existing_release.outputs.tag_name == v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
run: exit 1

- name: Setup JDK (Temurin 17)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
doNotFailIfNotFound: true

- name: Check if an existing release with the same version exists
if: steps.get_existing_release.outputs.tag_name == v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
if: steps.get_existing_release.outputs.tag_name == v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
run: exit 1

- name: Setup JDK (Temurin 17)
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/publish-modrinth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
doNotFailIfNotFound: true

- name: Check if an existing release with the same version exists
if: steps.get_existing_release.outputs.tag_name == v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
if: steps.get_existing_release.outputs.tag_name == v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
run: exit 1

- name: Setup JDK (Temurin 17)
Expand Down Expand Up @@ -72,8 +72,8 @@ jobs:
# Modrinth
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version_name.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
files: |
fabric/build/libs/!(*-@(sources|dev-shadow|javadoc|transformProduction*).jar)
fabric/build/libs/*-@(sources|javadoc).jar
Expand All @@ -88,8 +88,8 @@ jobs:
# Modrinth
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version_name.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
files: |
forge/build/libs/!(*-@(sources|dev-shadow|javadoc|transformProduction*).jar)
forge/build/libs/*-@(sources|javadoc).jar
Expand All @@ -104,8 +104,8 @@ jobs:
# Modrinth
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version_name.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
files: |
neoforge/build/libs/!(*-@(sources|dev-shadow|javadoc|transformProduction*).jar)
neoforge/build/libs/*-@(sources|javadoc).jar
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
doNotFailIfNotFound: true

- name: Check if an existing release with the same version exists
if: steps.get_existing_release.outputs.tag_name == v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
if: steps.get_existing_release.outputs.tag_name == v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
run: exit 1

- name: Setup JDK (Temurin 17)
Expand Down Expand Up @@ -75,8 +75,8 @@ jobs:
# CurseForge
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version_name.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
files: |
fabric/build/libs/!(*-@(sources|dev-shadow|javadoc|transformProduction*).jar)
fabric/build/libs/*-@(sources|javadoc).jar
Expand All @@ -94,8 +94,8 @@ jobs:
# CurseForge
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version_name.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
files: |
forge/build/libs/!(*-@(sources|dev-shadow|javadoc|transformProduction*).jar)
forge/build/libs/*-@(sources|javadoc).jar
Expand All @@ -113,8 +113,8 @@ jobs:
# CurseForge
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version.outputs.value }}
name: ${{ steps.mod_version.outputs.value }} (${{ steps.supported_minecraft_version_name.outputs.value }})
github-tag: v${{ steps.mod_version.outputs.value }}+mc${{ steps.supported_minecraft_version_name.outputs.value }}
files: |
neoforge/build/libs/!(*-@(sources|dev-shadow|javadoc|transformProduction*).jar)
neoforge/build/libs/*-@(sources|javadoc).jar
Expand Down

0 comments on commit acd13e5

Please sign in to comment.