Skip to content

Commit

Permalink
maven.yml Update
Browse files Browse the repository at this point in the history
  • Loading branch information
rikkarth committed Dec 8, 2023
1 parent 106686b commit 97c5e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 97c5e34

Please sign in to comment.