Skip to content

Commit

Permalink
[skip]ci: modify Skip Publishing Logic - Rename SKIP_UPLOAD variable …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
Suisuroru committed Jan 24, 2025
1 parent 6e870b5 commit a1c5a61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/auto_build_jar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]
with:
tag: ${{ env.VERSION }}
Expand Down

0 comments on commit a1c5a61

Please sign in to comment.