Skip to content

Commit

Permalink
KH-520: Fix failing builds on PR from forked repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliouzbett committed Jul 2, 2024
1 parent 8789f83 commit 82741b2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ jobs:
with:
java-version: "8"
maven-phase: "install"
maven-args: "-P prod" # Remove -Pvalidator to temporarily bypass validation
use-secrets: true
maven-args:
${{ github.event_name == 'push' && github.ref == 'refs/heads/main' ? '-P prod -DskipTests': '' }}
use-secrets:
${{ github.event_name == 'push' && github.ref == 'refs/heads/main' ? true: false }}
secrets:
NEXUS_USERNAME: ${{ secrets.MEKOM_NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.MEKOM_NEXUS_PASSWORD }}
Expand All @@ -24,7 +26,7 @@ jobs:
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-publish.yml@main
with:
java-version: "8"
maven-args: "-P prod -DskipTests=true"
maven-args: "-P prod -DskipTests"
secrets:
NEXUS_USERNAME: ${{ secrets.MEKOM_NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.MEKOM_NEXUS_PASSWORD }}

0 comments on commit 82741b2

Please sign in to comment.