From 3a870da44bfe5902b37fc44d476f6c3cba107366 Mon Sep 17 00:00:00 2001 From: mingjun97 Date: Wed, 18 May 2022 18:59:43 -0700 Subject: [PATCH] Revert accidentally changes to the pr event * Fix format as well --- .github/workflows/build.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cbb83d2..621723f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,13 @@ on: - "**.java" branches: - "main" + pull_request: + paths: + - "**.java" + types: + - opened + - synchronize + - reopened jobs: Build-Server-Jar: runs-on: ubuntu-latest @@ -40,10 +47,10 @@ jobs: - name: Automatic create a pre-relase if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest" - prerelease: true - title: "Development Build" - files: | - gc-plugin/mojoconsole.jar \ No newline at end of file + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: true + title: "Development Build" + files: | + gc-plugin/mojoconsole.jar \ No newline at end of file