diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 83a03240..3fee8b37 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -167,6 +167,10 @@ jobs: - name: 📝 Generate Github Summary uses: WcAServices/markdown-template-action@v1.1.0 with: + variables: >- + if [ -n "${{ steps.read_diff.outputs.diff != '' }}" ]; then + DIFF="${{ steps.read_diff.outputs.diff }}" + fi template: | 📃 **Name**: ${{ steps.project_name.outputs.value }} 📃 **Release**: ${{ steps.project_version.outputs.value }} @@ -174,9 +178,7 @@ jobs: 📃 **Game Version**: ${{ env.MINECRAFT_VERSION }} ${{ steps.changelog.outputs.description }} - if [ -n "${{ steps.read_diff.outputs.diff != '' }}" ]; then - ${{ steps.read_diff.outputs.diff }} - fi + $DIFF build-modpack: diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 913b787a..ea38bcd3 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -166,6 +166,10 @@ jobs: - name: 📝 Generate Github Summary uses: WcAServices/markdown-template-action@v1.1.0 with: + variables: >- + if [ -n "${{ steps.read_diff.outputs.diff != '' }}" ]; then + DIFF="${{ steps.read_diff.outputs.diff }}" + fi template: | 📃 **Name**: ${{ steps.project_name.outputs.value }} 📃 **Release**: ${{ steps.project_version.outputs.value }} @@ -173,7 +177,5 @@ jobs: 📃 **Game Version**: ${{ env.MINECRAFT_VERSION }} ${{ steps.changelog.outputs.description }} - if [ -n "${{ steps.read_diff.outputs.diff != '' }}" ]; then - ${{ steps.read_diff.outputs.diff }} - fi + $DIFF \ No newline at end of file