From 35e62b1351f901dd71b04c96e4d3714642f80d60 Mon Sep 17 00:00:00 2001 From: Syer10 Date: Sun, 1 Sep 2024 20:13:03 -0400 Subject: [PATCH] Test build on pull request --- .github/workflows/build_release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 89fbe00..002db9c 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -3,6 +3,7 @@ name: Java CI with Gradle on: push: branches: [ "master" ] + pull_request: jobs: build: @@ -25,11 +26,13 @@ jobs: arguments: shadowJar - name: Get Commit Count + if: ${{ github.event_name == 'push' }} id: commit_count run: echo "count=$(git rev-list --count HEAD)" >> $GITHUB_OUTPUT - name: Upload Release uses: softprops/action-gh-release@v2 + if: ${{ github.event_name == 'push' }} with: tag_name: ${{ steps.commit_count.outputs.count }} files: build/*.jar