Skip to content

Commit

Permalink
[skip]ci: skip build test
Browse files Browse the repository at this point in the history
  • Loading branch information
Suisuroru committed Jan 23, 2025
1 parent f701353 commit 68df1c8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/auto_build_jar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

- name: Check if commit message contains [skip]
id: check_skip
run: |
COMMIT_MESSAGE=$(git log -1 --pretty=%B)
if [[ "$COMMIT_MESSAGE" == "[skip]"* ]]; then
echo "SKIP_UPLOAD=true" >> $GITHUB_ENV
else
echo "SKIP_UPLOAD=false" >> $GITHUB_ENV
fi
- name: Update version in plugin.yml
if: env.SKIP_BUILD == 'false'
run: |
Expand All @@ -77,7 +87,7 @@ jobs:
path: ${{ env.FINAL_JAR_NAME }}.jar

- name: Create Pre-Release and Upload JAR file
if: env.SKIP_BUILD == 'false'
if: env.SKIP_UPLOAD == 'false' && env.SKIP_BUILD == 'false'
uses: ncipollo/[email protected]
with:
tag: ${{ env.VERSION }}
Expand Down

0 comments on commit 68df1c8

Please sign in to comment.