From 4346983b7de415474d06cc89b535d3078faf35f5 Mon Sep 17 00:00:00 2001 From: Creeam <102713261+HaHaWTH@users.noreply.github.com> Date: Thu, 20 Feb 2025 15:25:17 +0800 Subject: [PATCH] [ci skip] Don't create release for PR jars --- .github/workflows/build_1.21.4.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_1.21.4.yml b/.github/workflows/build_1.21.4.yml index 4b2ef40..8099c76 100644 --- a/.github/workflows/build_1.21.4.yml +++ b/.github/workflows/build_1.21.4.yml @@ -31,6 +31,7 @@ jobs: - name: CreateJar run: ./gradlew createMojmapPaperclipJar - name: Publish to repo + if: github.event_name != 'pull_request' continue-on-error: true run: | export MAVEN_REPO_USER=${{ secrets.MAVEN_REPO_USER }} @@ -42,9 +43,10 @@ jobs: name: "${{ env.project_id_b }} CI Artifacts" path: "luminol-server/build/libs/*.jar" - name: SetENV + if: github.event_name != 'pull_request' run: sh scripts/SetENV.sh - name: Create Release - if: "!contains(github.event.commits[0].message, '[release skip]')" + if: github.event_name != 'pull_request' uses: ncipollo/release-action@v1.14.0 with: tag: ${{ env.tag }}