From 54534abaadb8f10827a27103ec262ead8cb78990 Mon Sep 17 00:00:00 2001 From: Xikaro Date: Sat, 19 Apr 2025 02:16:56 +0500 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a985fe852..6e45e6b03 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,7 @@ jobs: changelog: ${{ steps.changelog.outputs.description }} diff: ${{ steps.read_diff.outputs.diff }} exists: ${{ steps.check_tag.outputs.exists }} - release_exists: ${{ steps.check_tag.outputs.exists == 'false' && env.DEV_ENVIRONMENT }} + make_release: ${{ steps.check_tag.outputs.exists == 'false' && env.DEV_ENVIRONMENT == 'false' }} steps: - name: Checkout @@ -192,7 +192,7 @@ jobs: 📃 **Dev Environment**: `${{ env.DEV_ENVIRONMENT }}` 📃 **Tag Exists**: `${{ steps.check_tag.outputs.exists }}` - 📃 **A release will be made**: `${{ steps.check_tag.outputs.exists == 'false' && env.DEV_ENVIRONMENT }}` + 📃 **Make Release**: `${{ steps.check_tag.outputs.exists == 'false' && env.DEV_ENVIRONMENT == 'false' }}` ${{ steps.changelog.outputs.description }} @@ -214,10 +214,8 @@ jobs: echo "Project Version: ${{ needs.info.outputs.project_version }}" echo "Project Name: ${{ needs.info.outputs.project_name }}" echo "Project Full Name: ${{ needs.info.outputs.project_full_name }}" - echo "Changelog: ${{ needs.info.outputs.changelog }}" - echo "Diff: ${{ needs.info.outputs.diff }}" echo "Exists: ${{ needs.info.outputs.exists }}" - echo "Release Exists: ${{ needs.info.outputs.release_exists }}" + echo "Release Exists: ${{ needs.info.outputs.make_release }}" echo "Dev Environment: ${{ env.DEV_ENVIRONMENT }}" - name: 🔄 Replace strings @@ -363,7 +361,7 @@ jobs: name: 🚀 Release to GitHub needs: [info, build-modpack, build-server, build-multimc] runs-on: ubuntu-latest - if: needs.info.outputs.release_exists == 'false' + if: ${{ needs.info.outputs.make_release }} outputs: url: ${{ steps.release.outputs.url }} @@ -432,7 +430,7 @@ jobs: name: 🚀 Release to CurseForge needs: [info, build-modpack, build-server, release-github] runs-on: ubuntu-latest - if: needs.info.outputs.release_exists == 'false' + if: ${{ needs.info.outputs.make_release }} outputs: id: ${{ steps.release.outputs.id }}