From 97c5e3453da58606bc7bcfa14744927c340e592d Mon Sep 17 00:00:00 2001 From: rikkarth Date: Fri, 8 Dec 2023 17:31:14 +0000 Subject: [PATCH] maven.yml Update --- .github/workflows/maven.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 2228e22..ab76580 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -17,7 +17,7 @@ on: jobs: test: - if: github.repository != 'refs/heads/main' + if: github.event_name == 'push' && github.event_name == 'pull_request' && github.ref != 'refs/heads/main' runs-on: ubuntu-latest steps: - name: Checkout code @@ -51,7 +51,7 @@ jobs: git push origin "$VERSION" publish: - if: github.repository == 'refs/heads/main' + if: github.event_name == 'push' && github.repository == 'refs/heads/main' runs-on: ubuntu-latest permissions: contents: read