diff --git a/.github/workflows/dbo_upload.yml b/.github/workflows/dbo_upload.yml index f6f926b6..d083dfac 100644 --- a/.github/workflows/dbo_upload.yml +++ b/.github/workflows/dbo_upload.yml @@ -17,15 +17,15 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag: ${{ steps.release.outputs.tag_name }} + tag: ${{ github.event.inputs.version }} - name: Download release artifact id: release-artifact uses: dsaltares/fetch-gh-release-asset@1.1.1 with: token: ${{ secrets.GITHUB_TOKEN }} - version: tags/${{ github.event.inputs.version }} - file: multiverse-core-${{ github.event.inputs.version }}.jar + version: tags/${{ steps.release-info.outputs.tag_name }} + file: multiverse-core-${{ steps.release-info.outputs.tag_name }}.jar - name: Parse release type run: | @@ -40,7 +40,7 @@ jobs: with: api_token: ${{ secrets.DBO_UPLOAD_API_TOKEN }} project_id: 30765 - changelog: ${{ steps.release-artifact.outputs.body }} + changelog: ${{ steps.release-info.outputs.body }} changelog_type: markdown display_name: ${{ steps.release-artifact.outputs.version }} game_versions: 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1 diff --git a/.github/workflows/modrinth_upload.yml b/.github/workflows/modrinth_upload.yml index 38f03571..f6bb1969 100644 --- a/.github/workflows/modrinth_upload.yml +++ b/.github/workflows/modrinth_upload.yml @@ -17,16 +17,16 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag: ${{ steps.release.outputs.tag_name }} + tag: ${{ github.event.inputs.version }} - name: Modify version scheme run: | - if [[ "${{ steps.release.outputs.tag_name }}" == *"pre"* ]]; then + if [[ "${{ steps.release-info.outputs.tag_name }}" == *"pre"* ]]; then echo "Replacing prerelease version scheme with SNAPSHOT" - echo "VERSION=$(echo ${{ steps.release.outputs.tag_name }} | sed -E 's/-pre.*/-SNAPSHOT/')" >> $GITHUB_ENV + echo "VERSION=$(echo ${{ steps.release-info.outputs.tag_name }} | sed -E 's/-pre.*/-SNAPSHOT/')" >> $GITHUB_ENV else echo "Using release version scheme" - echo "VERSION=${{ steps.release.outputs.tag_name }}" >> $GITHUB_ENV + echo "VERSION=${{ steps.release-info.outputs.tag_name }}" >> $GITHUB_ENV fi - name: Parse release type diff --git a/.github/workflows/promote_release.yml b/.github/workflows/promote_release.yml index b3f02fb2..b263f08c 100644 --- a/.github/workflows/promote_release.yml +++ b/.github/workflows/promote_release.yml @@ -76,7 +76,7 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} version: tags/${{ steps.release.outputs.tag_name }} - file: multiverse-core-${{ github.event.inputs.version }}.jar + file: multiverse-core-${{ steps.release.outputs.tag_name }}.jar - name: Upload to modrinth.com uses: gradle/gradle-build-action@v2