From a1c5a6101a3ad69d4ca7ac7fd16f5af4671bf567 Mon Sep 17 00:00:00 2001 From: Suisuroru Date: Fri, 24 Jan 2025 14:53:18 +0800 Subject: [PATCH] [skip]ci: modify Skip Publishing Logic - Rename SKIP_UPLOAD variable to SKIP_LEASE to more accurately reflect its functionality -Update condition judgment, use the new SKIP_LEASE variable to determine whether to create a pre release version --- .github/workflows/auto_build_jar.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto_build_jar.yml b/.github/workflows/auto_build_jar.yml index f02c2fa..0d8ba7e 100644 --- a/.github/workflows/auto_build_jar.yml +++ b/.github/workflows/auto_build_jar.yml @@ -56,9 +56,9 @@ jobs: run: | COMMIT_MESSAGE=$(git log -1 --pretty=%B) if [[ "$COMMIT_MESSAGE" == "[skip]"* ]]; then - echo "SKIP_UPLOAD=true" >> $GITHUB_ENV + echo "SKIP_RELEASE=true" >> $GITHUB_ENV else - echo "SKIP_UPLOAD=false" >> $GITHUB_ENV + echo "SKIP_RELEASE=false" >> $GITHUB_ENV fi - name: Update version in plugin.yml @@ -86,7 +86,7 @@ jobs: path: ${{ env.FINAL_JAR_NAME }}.jar - name: Create Pre-Release and Upload JAR file - if: env.SKIP_UPLOAD == 'false' && env.SKIP_BUILD == 'false' + if: env.SKIP_RELEASE == 'false' && env.SKIP_BUILD == 'false' uses: ncipollo/release-action@v1.15.0 with: tag: ${{ env.VERSION }}